Guile also provides procedures that operate on all types of uniform numeric
vectors. In what is probably a bug, these procedures are currently available in
the default environment as well; however prudent hackers will make sure to
import (srfi srfi-4 gnu) before using these.
Return non-zero when uvec is a uniform numeric vector, zero otherwise.
Return the number of elements of uvec as a
size_t.
Return
#tif obj is a homogeneous numeric vector of the indicated type.
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.
Like
scm_vector_elements(see Vector Accessing from C), but returns a pointer to the elements of a uniform numeric vector.
Like
scm_vector_writable_elements(see Vector Accessing from C), but returns a pointer to the elements of a uniform numeric vector.
Unless you really need to the limited generality of these functions, it is best to use the type-specific functions, or the generalized vector accessors.