>square-matrix ( m -- subset )


Vocabulary
math.matrices

Inputs
ma matrix


Outputs
subseta square-matrix


Word description
Find only the square subset of the input matrix.

Examples
USING: math.matrices prettyprint ; { { 0 2 4 6 } { 1 3 5 7 } } >square-matrix .
{ { 0 2 } { 1 3 } }


Definition