linalg(deprecated)/iszero - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : linalg(deprecated)/iszero

linalg(deprecated)

 iszero
 determine whether a matrix is zero

 Calling Sequence iszero(A)

Parameters

 A - matrix

Description

 • Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
 - For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
 • The call iszero(A) returns true if all of the entries of matrix A are zero, false or an error otherwise.
 • The command with(linalg,iszero) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $A≔\mathrm{array}\left(\left[\left[2,1\right],\left[1,2\right]\right]\right)$
 ${A}{≔}\left[\begin{array}{cc}{2}& {1}\\ {1}& {2}\end{array}\right]$ (1)
 > $\mathrm{iszero}\left(\mathrm{subs}\left(x=A,\mathrm{charpoly}\left(A,x\right)\right)\right)$
 ${\mathrm{true}}$ (2)
 > $A≔\mathrm{matrix}\left(3,3,\left[1,0,0,0,0,0,0,0,0\right]\right)$
 ${A}{≔}\left[\begin{array}{ccc}{1}& {0}& {0}\\ {0}& {0}& {0}\\ {0}& {0}& {0}\end{array}\right]$ (3)
 > $\mathrm{iszero}\left(A\right)$
 ${\mathrm{false}}$ (4)

 See Also