Algosim documentation: IsZeroRow

IsZeroRow

Tests if a matrix row contains only zeros.

Syntax

Description

If A is a matrix and n a valid row index in A, then IsZeroRow(A, n, ε) returns true iff the nth row of A consists only of zeros (compared with epsilon ε).

Examples

A ≔ ❨❨1, 5, 3, 2, 1❩, ❨0, 0, 1, 2, 3❩, ❨0, 0, 0, 0, 0❩❩
⎛1  5  3  2  1⎞
⎜0  0  1  2  3⎟
⎝0  0  0  0  0⎠
IsZeroRow(A, 3)
true

See also