Handbook
Glossary
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
matrix
a
blas-matrix-base
row
an
integer
col
an
integer
height
an
integer
width
an
integer
Outputs
sub
a
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
USING:
accessors
kernel
math.blas.matrices.private
;
IN:
math.blas.matrices
::
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)
;