(index ("make-number-vector" 0) ("number-vector" 1359) ("number-subvector" 1556) ("number-vector-type" 1800) ("number-vector-length" 1937) ("number-vector-ref" 2087) ("number-vector-set!" 2346) ("number-vector->list" 2673) ("list->number-vector" 2839))
(def (sig (procedure " (make-number-vector TYPE N [VALUE NONGC FINALIZE]) " (id make-number-vector))) (p "Return a newly-allocated SRFI-4 homogeneous number vector of length N and type TYPE.") (p "If the optional fill VALUE is specified, it specifies the initial value for each slot in the vector.  If not, the content of the vector is unspecified but individual elements of the vector are guaranteed to be in the range of values permitted for that type of vector.") (p "The type of the fill value must be compatible with the elements of the vector datatype.  It is an error if otherwise -- for example, if an inexact integer is passed to " (tt "make-u8vector") ".") (p "On Chicken, these procedures have been extended to allow allocating the storage in non-garbage collected memory, as follows:") (p "The optional arguments " (tt "NONGC") " and " (tt "FINALIZE") " define whether the vector should be allocated in a memory area not subject to garbage collection and whether the associated storage should be automatically freed (using finalization) when there are no references from Scheme variables and data.  " (tt "NONGC") " defaults to " (tt "#f") " (the vector will be located in normal garbage collected memory) and " (tt "FINALIZE") " defaults to " (tt "#t") ". Note that the " (tt "FINALIZE") " argument is only used when " (tt "NONGC") " is true."))
(def (sig (procedure " (number-vector TYPE VALUE ...) " (id number-vector))) (p "Return a newly-allocated SRFI-4 homogeneous number vector of the specified type TYPE, composed of the arguments."))
(def (sig (procedure " (number-subvector VECTOR FROM TO) " (id number-subvector))) (p "Creates a number vector of the same type as the argument vector with the elements at the positions " (tt "FROM") " up to but not including " (tt "TO") "."))
(def (sig (procedure " (number-vector-type VECTOR) " (id number-vector-type))) (p "Returns the type of the number VECTOR as a symbol."))
(def (sig (procedure " (number-vector-length VECTOR) " (id number-vector-length))) (p "Returns the length of the SRFI-4 homogeneous number VECTOR."))
(def (sig (procedure " (number-vector-ref VECTOR I) " (id number-vector-ref))) (p "Return the value of the " (i "i") "th element of the SRFI-4 homogeneous number vector, where " (tt "I") " is a nonnegative exact integer less than the length of the vector."))
(def (sig (procedure " (number-vector-set! VECTOR I VALUE) " (id number-vector-set!))) (p "Set the " (tt "i") "th element of the SRFI-4 homogeneous number VECTOR to VALUE.  " (tt "I") " is a nonnegative exact integer less than the length of the vector and VALUE must be the same type as the elements of the vector datatype."))
(def (sig (procedure " (number-vector->list VECTOR) " (id number-vector->list))) (p "Return a list consisting of the elements of SRFI-4 homogeneous number VECTOR."))
(def (sig (procedure " (list->number-vector TYPE LIST) " (id list->number-vector))) (p "Return a newly-allocated SRFI-4 homogeneous number VECTOR of TYPE consisting of the elements of LIST.  Each element of LIST must be compatible with the datatype of VECTOR."))
