linalg(deprecated)/equal - Help

Online Help

All Products    Maple    MapleSim


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

linalg(deprecated)

  

equal

  

determine whether two matrices are equal

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

equal(A, B)

Parameters

A, B

-

matrices

Description

• 

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Equal], instead.

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The procedure equal returns true if matrices A and B are of the same shape and corresponding entries are equal, false or an error otherwise.

• 

The command with(linalg,equal) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Equal], instead.

withlinalg:

Aarray2,1,1,2

A2112

(1)

Barray2,1,1,2

B2112

(2)

equal returns an error if A and B are not of the same type

equalA,B

Error, (in linalg:-equal) arguments must be both matrices or both vectors

Cmatrix2,2,2,1,1,2

C2112

(3)

equalA,C

true

(4)

Farray2,1,2,1

F2121

(5)

equalA,F

false

(6)

See Also

LinearAlgebra