<< gf_is_one Element arithmetic gf_multiply >>

Galois Fields >> Galois Fields > Element arithmetic > gf_is_zero

gf_is_zero

Tests whether all coefficients of an array are zero

Syntax

tf = gf_is_zero(a)

Arguments

a

Real matrix: an element, a polynomial or a set of them.

tf

T if every entry of a is 0, F otherwise.

Description

gf_is_zero(a) tests whether a represents the zero element or the zero polynomial. It works on the whole array: for a matrix of several elements, the result is T only if they are all zero.

Examples

gf_is_zero([0 0 0 0])      // T
gf_is_zero([0 1 0 0])      // F

See also

History

VersionDescription
2.0.0

Refactoring of the function/toolbox.


Report an issue
<< gf_is_one Element arithmetic gf_multiply >>