matrix-nths ( pairs matrix -- elts )
Matrix operations

Prev:matrix-nth ( pair matrix -- elt )
Next:matrix-set-nth ( obj pair matrix -- )


Vocabulary
math.matrices

Inputs
pairsan assoc
matrixa matrix


Outputs
eltsa sequence


Word description
Retrieve all the elements in the matrix at each of the zero-indexed row, column pairs in pairs.

Notes
This word is the two-dimensional variant of nths.
This word is intended for use with "flat" (2-dimensional) matrices.


Errors
bounds-error if the first element of a pair in pairs is greater than the maximum row index in matrix
bounds-error if the second element of a pair in pairs is greater than the maximum column index in matrix


Examples
USING: math.matrices prettyprint ; { { 1 0 } { 1 1 } } { { 0 1 } { 2 3 } } matrix-nths .
{ 2 3 }


Definition