Vocabularymath.
matricesInputsOutputsWord descriptionRetrieve 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 |
ExamplesUSING: math.matrices prettyprint ;
{ { 1 0 } { 1 1 } } { { 0 1 } { 2 3 } } matrix-nths .
{ 2 3 }
Definition