linalg(deprecated)
equal
determine whether two matrices are equal
Calling Sequence
Parameters
Description
Examples
equal(A, B)
A, B
-
matrices
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.
with⁡linalg:
A≔array⁡2,1,1,2
A≔2112
B≔array⁡2,1,1,2
B≔2112
equal returns an error if A and B are not of the same type
equal⁡A,B
Error, (in linalg:-equal) arguments must be both matrices or both vectors
C≔matrix⁡2,2,2,1,1,2
C≔2112
equal⁡A,C
true
F≔array⁡2,1,2,1
F≔2121
equal⁡A,F
false
See Also
LinearAlgebra
Download Help Document