Handbook
Glossary
<empty-matrix> ( rows cols exemplar -- matrix )
Basic Linear Algebra Subroutines (BLAS) interface
ยป
BLAS interface types
Prev:
<empty-vector> ( length exemplar -- vector )
Next:
>float-blas-vector ( seq -- v )
Vocabulary
math
.
blas
.
matrices
Inputs
rows
an
integer
cols
an
integer
exemplar
a
blas-vector-base
Outputs
matrix
a
blas-matrix-base
Word description
Create a matrix of all zeros with the given dimensions and the same element type as
exemplar
.
See also
<zero-vector>
,
<empty-vector>
Definition
USING:
alien.c-types
byte-arrays
kernel
math
math.blas.matrices.private
math.blas.vectors
;
IN:
math.blas.matrices
:
<empty-matrix>
( rows cols exemplar -- matrix )
[
element-type
heap-size
*
*
<byte-array>
]
[
2drop
]
[
[
f
]
dip
(blas-matrix-like)
]
3tri
;