This file defines the basic type for a vector struct and functions useful in manupulating vectors.
Ross Harman, MHPCC
Definition in file psVector.h.
#include <stdio.h>
#include "psType.h"
Include dependency graph for psVector.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| psVector * | psVectorAlloc (psU32 nalloc, psElemType dataType) |
| Allocate a vector. | |
| psVector * | psVectorRealloc (psVector *psVec, psU32 nalloc) |
| Reallocate a vector. | |
| psVector * | psVectorExtend (psVector *vector, int delta, int nExtend) |
| Extend a vector's length. | |
| 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. | |
| bool | p_psVectorPrint (FILE *f, psVector *a, char *name) |
| Print a vector to a stream. | |
1.4.1