= (Matrix)

Compares two matrixes with the same dimension by comparing all their corresponding elements. If the dimensions are different, an error will occur.

Arguments

matrix0
and
matrix1
are the Matrixes to compare.

Return values

condition
is TRUE if the matrixes are equal, FALSE otherwise.

Complexity

O(dimension)

Example

"sl/algebra" useFile m1: ((6.0 3.0 1.0 0.0) (-1.0 1.0 8.0 5.0) (0.0 2.0 -8.0 1.0)) makeMatrix; m2: ((6.0 2.0 1.0 0.0) (-1.0 2.0 8.0 5.0) (0.0 2.0 -5.0 1.0)) makeMatrix; m3: ((0.0 1.0 0.0 0.0) (0.0 -1.0 0.0 0.0) (0.0 0.0 -3.0 0.0)) makeMatrix; m1 m2 = print LF print m1 m2 m3 + = print
Output:
FALSE TRUE