Files | |
| file | psVector.h |
| Contains basic vector definitions and operations. | |
Data Structures | |
| struct | psVector |
| An vector to support primitive types. More... | |
Functions | |
| psVector * | psVectorAlloc (psU32 nalloc, psElemType dataType) |
| Allocate a vector. | |
| psVector * | psVectorRealloc (psVector *psVec, psU32 nalloc) |
| Reallocate a vector. | |
| psVector * | psVectorRecycle (psVector *psVec, psU32 nalloc, psElemType type) |
| Recycle a vector. | |
| psVector * | psVectorCopy (psVector *out, const psVector *in, psElemType type) |
| Copy a vector, converting types. | |
| psVector * | psVectorSort (psVector *outVector, const psVector *inVector) |
| Sort an array of floats. | |
| psVector * | psVectorSortIndex (psVector *outVector, const psVector *inVector) |
| Creates an array of indices based on sort ordered of array. | |
| char * | psVectorToString (psVector *vector, int maxLength) |
| Creates a string from a psVector's values in the form "[x0,x1,x2]". | |
| psF64 | p_psVectorGetElementF64 (psVector *vector, int position) |
| Returns an element in the vector as a psF64 value. | |
|
||||||||||||
|
Returns an element in the vector as a psF64 value.
|
|
||||||||||||
|
Allocate a vector. Uses psLib memory allocation functions to create a vector collection of data as defined by the psType type.
|
|
||||||||||||||||
|
Copy a vector, converting types. Performs a deep copy of the elements of one psVector to a new psVector, converting numeric types to a specified type.
|
|
||||||||||||
|
Reallocate a vector. Uses psLib memory allocation functions to reallocate a vector collection of data. The vector is reallocated according to the psType type member contained within the vector.
|
|
||||||||||||||||
|
Recycle a vector. Uses psLib memory allocation functions to reallocate a vector collection of data. The vector is reallocated according to the psElemType type parameter.
|
|
||||||||||||
|
Sort an array of floats. Sorts an array of floats in ascending order. This function is valid for all non-complex data types.
|
|
||||||||||||
|
Creates an array of indices based on sort ordered of array. Sorts a vector and creates an integer array holding indices of sorted float values based on pre-sort index positions.
|
|
||||||||||||
|
Creates a string from a psVector's values in the form "[x0,x1,x2]".
|
1.3.9.1