Vocabularymath.
matricesInputsOutputsWord descriptionCreates a matrix with the specified main diagonal. This word has the opposite effect of
main-diagonal.
NotesTo use a diagonal starting in the lower right, reverse the input sequence before calling this word.
ExamplesUSING: math.matrices prettyprint ;
{ 1 2 3 } <diagonal-matrix> .
{ { 1 0 0 } { 0 2 0 } { 0 0 3 } }
Definition