Vocabulary math .
matrices .
extras Inputs matrix a matrix quot a quotation with stack effect ( ... pair matrix -- ... matrix' )
Outputs Word description Calls the quotation with the matrix and the coordinate pair of the current element on the stack, with the matrix on the top of the stack.
Examples USING: arrays math.matrices.extras prettyprint ;
{ { 21 22 } { 23 24 } } [ 2array ] cartesian-matrix-map .{
{
{ { 0 0 } { { 21 22 } { 23 24 } } }
{ { 0 1 } { { 21 22 } { 23 24 } } }
}
{
{ { 1 0 } { { 21 22 } { 23 24 } } }
{ { 1 1 } { { 21 22 } { 23 24 } } }
}
}
Notes • This word is the orthogonal variant of cartesian-column-map . • This word is the two-dimensional variant of map-index . • This word is intended for use with "flat" (2-dimensional) matrices.
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.101 x86.64 (2284, heads/master-29a92525f9, Nov 9 2024 06:55:18)