m~ ( m1 m2 epsilon -- ? )
Matrix operations

Prev:m/ ( m1 m2 -- m )
Next:vdotm ( v m -- p )


Vocabulary
math.matrices

Inputs
m1a matrix
m2a matrix
epsilona number


Outputs
?a boolean


Word description
Compares the matrices like ~, using the epsilon.

Notes
This word is intended for use with "flat" (2-dimensional) matrices.
This word assumes that elements of the input matrix are compatible with the following words:
~ ( x y epsilon -- ? )


Examples
In the example, only .01 was added to each element, so the new matrix is within the epsilon .1of the original.
USING: kernel math math.matrices prettyprint ; { { 5 9 } { 15 17 } } dup [ .01 + ] matrix-map .1 m~ .
t


Definition