<cartesian-indices> ( dim -- coordinates )


Vocabulary
math.matrices

Inputs
dima pair


Outputs
coordinatesa matrix


Word description
An alias for <coordinate-matrix> which serves as the logical non-square companion to <cartesian-square-indices>.

Examples
USING: math.matrices prettyprint ; { 2 4 } <cartesian-indices> .
{ { { 0 0 } { 0 1 } { 0 2 } { 0 3 } } { { 1 0 } { 1 1 } { 1 2 } { 1 3 } } }


Definition