<upper-matrix> ( object m n -- matrix )
Matrix operations

Prev:<square-cols> ( desc -- matrix )
Next:<lower-matrix> ( object m n -- matrix )


Vocabulary
math.matrices

Inputs
objectan object
man integer
nan integer


Outputs
matrixa matrix


Word description
Make an upper triangular matrix, where all the values below the main diagonal are 0. object will be used as the value for the nonzero part of the matrix, while m and n are used as the dimensions. The inverse of this word is <lower-matrix>. See triangular matrix.

Examples
USING: math.matrices prettyprint ; 1 5 5 <upper-matrix> .
{ { 1 1 1 1 1 } { 0 1 1 1 1 } { 0 0 1 1 1 } { 0 0 0 1 1 } { 0 0 0 0 1 } }


Definition