Vocabularymath.
matricesInputsOutputsWord descriptionCreates an
m x n matrix with a diagonal of ones offset by
k from the main diagonal.The following are equivalent for any
m n k:
m n k 1 <eye>
m n k <simple-eye>
Specify a different diagonal value with
<eye>.
ExamplesUSING: math.matrices prettyprint ;
4 5 2 <simple-eye> .
{ { 0 0 1 0 0 } { 0 0 0 1 0 } { 0 0 0 0 1 } { 0 0 0 0 0 } }
Definition