Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psVector.h File Reference


Detailed Description

Contains basic vector definitions and operations.

This file defines the basic type for a vector struct and functions useful in manupulating vectors.

Author:
Robert DeSonia, MHPCC

Ross Harman, MHPCC

Version:
Revision
1.50
Name
rel9_0
Date:
Date
2005/11/16 23:06:21
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

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.

Defines

#define P_PSVECTOR_SET_NALLOC(vec, n)   *(long*)&(vec->nalloc) = n

Functions

bool psMemCheckVector (psPtr ptr)
 Checks the type of a particular pointer.
psVectorpsVectorAlloc (long nalloc, psElemType type)
 Allocate a vector.
psVectorpsVectorRealloc (psVector *vector, long nalloc)
 Reallocate a vector.
psVectorpsVectorExtend (psVector *vector, long delta, long nExtend)
 Extend a vector's length.
psVectorpsVectorRecycle (psVector *vector, long nalloc, psElemType type)
 Recycle a vector.
psVectorpsVectorCopy (psVector *output, const psVector *input, psElemType type)
 Copy a vector, converting types.
psVectorpsVectorSort (psVector *outVector, const psVector *inVector)
 Sort an array of floats.
psVectorpsVectorSortIndex (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 (int fd, psVector *a, char *name)
 Print a vector to a stream.
bool psVectorInit (psVector *vector,...)
 Initializes the vector with the given value.
psVectorpsVectorCreate (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 (const psVector *input, long position, complex value)
 Sets the value of the input vector at the specified position to value.
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.


Generated on Tue Dec 6 17:18:43 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.2