Vocabulary

math.matrices

Inputs

Outputs

Word description

Compares the matrices like ~, using the epsilon.

Notes

Examples

In the example, only .01 was added to each element, so the new matrix is within the epsilon .1of the original.

Definition

math.matrices

Inputs

m1 | a matrix |

m2 | a matrix |

epsilon | a 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

t

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2190, heads/master-46c625f8dc, Feb 4 2023 19:37:27)