Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.
Next: SRFI-4 and Bytevectors, Previous: SRFI-4 Overview, Up: SRFI-4 [Contents][Index]
Note that the c32
and c64
functions are only available from
(srfi srfi-4 gnu)
.
Return #t
if obj is a homogeneous numeric vector of the
indicated type.
Return a newly allocated homogeneous numeric vector holding n elements of the indicated type. If value is given, the vector is initialized with that value, otherwise the contents are unspecified.
Return a newly allocated homogeneous numeric vector of the indicated type, holding the given parameter values. The vector length is the number of parameters given.
Return the number of elements in vec.
Return the element at index i in vec. The first element in vec is index 0.
Set the element at index i in vec to value. The first element in vec is index 0. The return value is unspecified.
Return a newly allocated list holding all elements of vec.
Return a newly allocated homogeneous numeric vector of the indicated type, initialized with the elements of the list lst.
Return a new uniform numeric vector of the indicated type and length
that uses the memory pointed to by data to store its elements.
This memory will eventually be freed with free
. The argument
len specifies the number of elements in data, not its size
in bytes.
The c32
and c64
variants take a pointer to a C array of
float
s or double
s. The real parts of the complex numbers
are at even indices in that array, the corresponding imaginary parts are
at the following odd index.
Like scm_vector_elements
(see Vector Accessing from C), but
returns a pointer to the elements of a uniform numeric vector of the
indicated kind.
Like scm_vector_writable_elements
(see Vector Accessing from C), but returns a pointer to the elements of a uniform numeric vector
of the indicated kind.
Next: SRFI-4 and Bytevectors, Previous: SRFI-4 Overview, Up: SRFI-4 [Contents][Index]