Vocabularymath.
matricesInputsOutputsWord descriptionCompares 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 -- ? ) |
ExamplesIn 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