Vocabulary

math.matrices

Inputs

Outputs

Word description

Every element in the input matrix m is multiplied by the scalar n.

Notes

Examples

Definition

math.matrices

Inputs

n | an object |

m | a matrix |

Outputs

m | a matrix |

Word description

Every element in the input matrix m is multiplied by the scalar n.

Notes

• | The shape of the input matrix is preserved in the output. |

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

• | 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 3 <identity-matrix> n*m .

{ { 3 0 0 } { 0 3 0 } { 0 0 3 } }

{ { 3 0 0 } { 0 3 0 } { 0 0 3 } }

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 (2203, heads/master-424edf64aa, Mar 8 2023 13:48:50)