Msub ( matrix row col height width -- sub )
Basic Linear Algebra Subroutines (BLAS) interface ยป BLAS interface matrix operations

Prev:Mcols ( A -- cols )
Next:n*M.V+n*V! ( alpha A x beta y -- y=alpha*A.x+b*y )


Vocabulary
math.blas.matrices

Inputs
matrixa blas-matrix-base
rowan integer
colan integer
heightan integer
widthan integer


Outputs
suba blas-matrix-base


Word description
Select a rectangular submatrix of matrix with the given dimensions. The returned submatrix will share the parent matrix's storage.

Definition


:: Msub ( matrix row col height width -- sub )
matrix dup transpose>>
[ col row width height ] [ row col height width ] if (Msub)
matrix transpose>> matrix (blas-matrix-like) ;