Vocabulary

math.matrices

Inputs

Outputs

Word description

n is treated as a scalar and subtracted from each element of the matrix m.

Notes

Examples

Definition

math.matrices

Inputs

m | a matrix |

n | an object |

Outputs

m | a matrix |

Word description

n is treated as a scalar and subtracted from each element of the matrix m.

Notes

• | This word is the swapped variant of n-m. |

• | 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 -- z ) |

Examples

USING: kernel math.matrices prettyprint ;
3 <identity-matrix> 1 m-n .

{ { 0 -1 -1 } { -1 0 -1 } { -1 -1 0 } }

{ { 0 -1 -1 } { -1 0 -1 } { -1 -1 0 } }

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)