Kawa, the Javabased Scheme system
7.11 Uniform vectors
Uniform vectors are vectors whose elements are of the same numeric type.
The are defined by SRFI4.
However, the type names (such as <s8vector>
) are a Kawa extension.
 Variable: <s8vector>
 The type of uniform vectors where each element can contain
a signed 8bit integer. Represented using an array of
<byte>
.
 Variable: <u8vector>
 The type of uniform vectors where each element can contain
an unsigned 8bit integer. Represented using an array of
<byte>
,
but each element is treated as if unsigned.
 Variable: <s16vector>
 The type of uniform vectors where each element can contain
a signed 16bit integer. Represented using an array of
<short>
.
 Variable: <u16vector>
 The type of uniform vectors where each element can contain
an unsigned 16bit integer. Represented using an array of
<short>
,
but each element is treated as if unsigned.
 Variable: <s32vector>
 The type of uniform vectors where each element can contain
a signed 32bit integer. Represented using an array of
<int>
.
 Variable: <u32vector>
 The type of uniform vectors where each element can contain
an unsigned 32bit integer. Represented using an array of
<int>
,
but each element is treated as if unsigned.
 Variable: <s64vector>
 The type of uniform vectors where each element can contain
a signed 64bit integer. Represented using an array of
<long>
.
 Variable: <u64vector>
 The type of uniform vectors where each element can contain
an unsigned 64bit integer. Represented using an array of
<long>
,
but each element is treated as if unsigned.
 Variable: <f32vector>
 The type of uniform vectors where each element can contain
a 32bit floatingpoint real. Represented using an array of
<float>
.
 Variable: <f64vector>
 The type of uniform vectors where each element can contain
a 64bit floatingpoint real. Represented using an array of
<double>
.
 Function: s8vector? value

 Function: u8vector? value

 Function: s16vector? value

 Function: u16vector? value

 Function: s32vector? value

 Function: u32vector? value

 Function: s64vector? value

 Function: u64vector? value

 Function: f32vector? value

 Function: f64vector? value
 Return true iff value is a uniform vector of the specified type.
 Function: makes8vector n [value]

 Function: makeu8vector n [value]

 Function: makes16vector n [value]

 Function: makeu16vector n [value]

 Function: makes32vector n [value]

 Function: makeu32vector n [value]

 Function: makes64vector n [value]

 Function: makeu64vector n [value]

 Function: makef32vector n [value]

 Function: makef64vector n [value]
 Create a new uniform vector of the specified type,
having room for n elements.
Initialize each element to value if it is specified; zero otherwise.
 Function: s8vector value ...

 Function: u8vector value ...

 Function: s16vector value ..

 Function: u16vector value ...

 Function: s32vector value ...

 Function: u32vector value ...

 Function: s64vector value ...

 Function: u64vector value ...

 Function: f32vector value ...

 Function: f64vector value ...
 Create a new uniform vector of the specified type,
whose length is the number of values specified,
and initialize it using those values.
 Function: s8vectorlength v

 Function: u8vectorlength v

 Function: s16vectorlength v

 Function: u16vectorlength v

 Function: s32vectorlength v

 Function: u32vectorlength v

 Function: s64vectorlength v

 Function: u64vectorlength v

 Function: f32vectorlength v

 Function: f64vectorlength v
 Return the length (in number of elements) of the uniform vector v.
 Function: s8vectorref v i

 Function: u8vectorref v i

 Function: s16vectorref v i

 Function: u16vectorref v i

 Function: s32vectorref v i

 Function: u32vectorref v i

 Function: s64vectorref v i

 Function: u64vectorref v i

 Function: f32vectorref v i

 Function: f64vectorref v i
 Return the element at index i of the uniform vector v.
 Function: s8vectorset! v i x

 Function: u8vectorset! v i x

 Function: s16vectorset! v i x

 Function: u16vectorset! v i x

 Function: s32vectorset! v i x

 Function: u32vectorset! v i x

 Function: s64vectorset! v i x

 Function: u64vectorset! v i x

 Function: f32vectorset! v i x

 Function: f64vectorset! v i x
 Set the element at index i of uniform vector v
to the value x, which must be a number coercible
to the appropriate type.
 Function: s8vector>list v

 Function: u8vector>list v

 Function: s16vector>list v

 Function: u16vector>list v

 Function: s32vector>list v

 Function: u32vector>list v

 Function: s64vector>list v

 Function: u64vector>list v

 Function: f32vector>list v

 Function: f64vector>list v
 Convert the uniform vetor v to a list containing the elments of v.
 Function: list>s8vector l

 Function: list>u8vector l

 Function: list>s16vector l

 Function: list>u16vector l

 Function: list>s32vector l

 Function: list>u32vector l

 Function: list>s64vector l

 Function: list>u64vector l

 Function: list>f32vector l

 Function: list>f64vector l
 Create a uniform vector of the appropriate type, initializing it
with the elements of the list l. The elements of l
must be numbers coercible the new vector's element type.