<box-matrix> ( r -- matrix )
Extra matrix operations

Next:<hankel-matrix> ( n -- matrix )


Vocabulary
math.matrices.extras

Inputs
ran integer


Outputs
matrixa matrix


Word description
Create a box matrix (a square-matrix) with the dimensions of r x r, filled with ones. The number of elements in the output scales linearly ((r*2)+1) with r.

Examples
USING: math.matrices.extras prettyprint ; 2 <box-matrix> .
{ { 1 1 1 1 1 } { 1 1 1 1 1 } { 1 1 1 1 1 } { 1 1 1 1 1 } { 1 1 1 1 1 } }

USING: math.matrices.extras prettyprint ; 3 <box-matrix> .
{ { 1 1 1 1 1 1 1 } { 1 1 1 1 1 1 1 } { 1 1 1 1 1 1 1 } { 1 1 1 1 1 1 1 } { 1 1 1 1 1 1 1 } { 1 1 1 1 1 1 1 } { 1 1 1 1 1 1 1 } }


Definition