ZeroRowCount
Returns the number of zero rows in a matrix.
Syntax
-
ZeroRowCount(A[, ε])
-
A
is a matrix -
ε
is a positive number
-
Description
If A
is a matrix then ZeroRowCount(A)
returns the number of rows, in A
, that contain only zeros (compared with epsilon ε
).
Examples
A ≔ ❨❨5, 3, 2, 1, 4, 5, 2❩, ❨0, 0, 5, 3, 0, 0, 1❩, ❨0, 0, 0, 0, 0, 0, 0❩, ❨2, 3, 1, 4, 2, 2, 0❩, ❨0, 0, 0, 0, 0, 0, 0❩, ❨0, 0, 0, 0, 0, 0, 0❩❩
⎛5 3 2 1 4 5 2⎞ ⎜0 0 5 3 0 0 1⎟ ⎜0 0 0 0 0 0 0⎟ ⎜2 3 1 4 2 2 0⎟ ⎜0 0 0 0 0 0 0⎟ ⎝0 0 0 0 0 0 0⎠
ZeroRowCount(A)
3