Handbook
Glossary
<empty-vector> ( length exemplar -- vector )
Basic Linear Algebra Subroutines (BLAS) interface
ยป
BLAS interface types
Prev:
<complex-double-blas-matrix> ( underlying ld rows cols transpose -- matrix )
Next:
<empty-matrix> ( rows cols exemplar -- matrix )
Vocabulary
math
.
blas
.
vectors
Inputs
length
The length of the new vector
exemplar
a
blas-vector-base
Outputs
vector
a
blas-vector-base
Word description
Return a vector of zeros with the given
length
and the same element type as
v
.
See also
<zero-vector>
,
<empty-matrix>
Definition
USING:
alien.c-types
byte-arrays
kernel
math
math.blas.vectors.private
;
IN:
math.blas.vectors
:
<empty-vector>
( length exemplar -- vector )
[
element-type
heap-size
*
<byte-array>
]
[
1
swap
]
2bi
(blas-vector-like)
;