#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.
Data Structures | |
| struct | psVector |
| An vector to support primitive types. More... | |
Defines | |
| #define | P_PSVECTOR_SET_NALLOC(vec, n) *(long*)&(vec->nalloc) = n |
| #define | PS_ASSERT_VECTOR_NON_NULL(NAME, RVAL) PS_ASSERT_GENERAL_VECTOR_NON_NULL(NAME, return RVAL) |
| #define | PS_ASSERT_GENERAL_VECTOR_NON_NULL(NAME, CLEANUP) |
| #define | PS_ASSERT_VECTOR_NON_EMPTY(NAME, RVAL) PS_ASSERT_GENERAL_VECTOR_NON_EMPTY(NAME, return RVAL) |
| #define | PS_ASSERT_GENERAL_VECTOR_NON_EMPTY(NAME, CLEANUP) |
| #define | PS_ASSERT_VECTOR_TYPE_F32_OR_F64(NAME, RVAL) |
| #define | PS_ASSERT_VECTOR_TYPE_S16_S32_F32(NAME, RVAL) |
| #define | PS_ASSERT_VECTOR_TYPE(NAME, TYPE, RVAL) |
| #define | PS_ASSERT_VECTORS_SIZE_EQUAL(VEC1, VEC2, RVAL) |
| #define | PS_ASSERT_VECTOR_SIZE(VEC, SIZE, RVAL) |
| #define | PS_ASSERT_VECTOR_TYPE_EQUAL(VEC1, VEC2, RVAL) |
| #define | PS_VECTOR_PRINT_F32(NAME) |
| #define | PS_VECTOR_PRINT_F64(NAME) |
Functions | |
| bool | psMemCheckVector (psPtr ptr) |
| Checks the type of a particular pointer. | |
| psVector * | psVectorAlloc (long nalloc, psElemType type) |
| Allocate a vector, with length set to number allocated. | |
| psVector * | psVectorAllocEmpty (long nalloc, psElemType type) |
| Allocate a vector, with length set to zero. | |
| psVector * | psVectorRealloc (psVector *vector, long nalloc) |
| Reallocate a vector. | |
| psVector * | psVectorExtend (psVector *vector, long delta, long nExtend) |
| Extend a vector's length. | |
| psVector * | psVectorRecycle (psVector *vector, long nalloc, psElemType type) |
| Recycle a vector. | |
| psVector * | psVectorCopy (psVector *output, const psVector *input, 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. | |
| psString | psVectorToString (const psVector *vector, int maxLength) |
| Creates a string from a psVector's values in the form "[x0,x1,x2]". | |
| psF64 | p_psVectorGetElementF64 (const psVector *vector, int position) |
| Returns an element in the vector as a psF64 value. | |
| bool | p_psVectorPrint (int fd, const psVector *a, char *name) |
| Print a vector to a stream. | |
| bool | psVectorInit (psVector *vector,...) |
| Initializes the vector with the given value. | |
| psVector * | psVectorCreate (psVector *input, double lower, double upper, double delta, psElemType type) |
| Creates a new vector, or reallocates the provided vector if input is not NULL. | |
| bool | psVectorSet (psVector *input, long position, double complex value) |
| Sets the value of the input vector at the specified position to value. | |
| double complex | psVectorGet (const psVector *input, long position) |
| Returns the value of the input vector at the specified position. | |
| long | psVectorCountPixelMask (psVector *mask, psMaskType value) |
| Returns the number of pixels in the vector which satisfy any of the mask bits. | |
| long | psVectorLength (const psVector *vector) |
| Get the number of elements in use from a specified psVector. | |
1.5.1