Changeset 1440 for trunk/psLib/src/collections/psVector.h
- Timestamp:
- Aug 9, 2004, 1:34:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psVector.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psVector.h
r1426 r1440 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-09 2 2:44:25$14 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-09 23:34:57 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 39 39 union { 40 psU8 *U8; ///< Unsigned 8-bit integer data.41 psU16 *U16; ///< Unsigned 16-bit integer data.42 psU32 *U32; ///< Unsigned 32-bit integer data.43 psU64 *U64; ///< Unsigned 64-bit integer data.44 psS8 *S8; ///< Signed 8-bit integer data.45 psS16 *S16; ///< Signed 16-bit integer data.46 psS32 *S32; ///< Signed 32-bit integer data.47 psS64 *S64; ///< Signed 64-bit integer data.48 psF32 *F32; ///< Single-precision float data.49 psF64 *F64; ///< Double-precision float data.50 psC32 *C32; ///< Single-precision complex data.51 psC64 *C64; ///< Double-precision complex data.40 psU8* U8; ///< Unsigned 8-bit integer data. 41 psU16* U16; ///< Unsigned 16-bit integer data. 42 psU32* U32; ///< Unsigned 32-bit integer data. 43 psU64* U64; ///< Unsigned 64-bit integer data. 44 psS8* S8; ///< Signed 8-bit integer data. 45 psS16* S16; ///< Signed 16-bit integer data. 46 psS32* S32; ///< Signed 32-bit integer data. 47 psS64* S64; ///< Signed 64-bit integer data. 48 psF32* F32; ///< Single-precision float data. 49 psF64* F64; ///< Double-precision float data. 50 psC32* C32; ///< Single-precision complex data. 51 psC64* C64; ///< Double-precision complex data. 52 52 psPTR V; ///< Pointer to data. 53 53 } data; ///< Union for data types. … … 65 65 * Uses psLib memory allocation functions to create a vector collection of data as defined by the psType type. 66 66 * 67 * @return psVector* : Pointer to psVector.67 * @return psVector* : Pointer to psVector. 68 68 * 69 69 */ 70 psVector *psVectorAlloc(unsigned int nalloc, ///< Total number of elements to make available.70 psVector* psVectorAlloc(unsigned int nalloc, ///< Total number of elements to make available. 71 71 psElemType dataType ///< Type of data to be held by vector. 72 72 ); … … 77 77 * according to the psType type member contained within the vector. 78 78 * 79 * @return psVector* : Pointer to psVector.79 * @return psVector* : Pointer to psVector. 80 80 * 81 81 */ 82 psVector *psVectorRealloc(unsigned int nalloc, ///< Total number of elements to make available.83 psVector * restrict psVec ///< Vector to reallocate.82 psVector* psVectorRealloc(unsigned int nalloc, ///< Total number of elements to make available. 83 psVector* restrict psVec ///< Vector to reallocate. 84 84 ); 85 85 … … 89 89 * according to the psElemType type parameter. 90 90 * 91 * @return psVector* : Pointer to psVector.91 * @return psVector* : Pointer to psVector. 92 92 * 93 93 */ 94 psVector *psVectorRecycle(psVector* restrict psVec,94 psVector* psVectorRecycle(psVector* restrict psVec, 95 95 ///< Vector to recycle. If NULL, a new vector is created. No effort taken to 96 96 // preserve the values. … … 104 104 * all non-complex data types. 105 105 * 106 * @return psFloatArray* : Pointer to sorted psFloatArray.106 * @return psFloatArray* : Pointer to sorted psFloatArray. 107 107 */ 108 108 109 psVector *psVectorSort(psVector* restrict outVector, ///< the output vector to recycle, or NULL if new109 psVector* psVectorSort(psVector* restrict outVector, ///< the output vector to recycle, or NULL if new 110 110 // vector desired. 111 const psVector * restrict inVector ///< the vector to sort.111 const psVector* restrict inVector ///< the vector to sort. 112 112 ); 113 113 … … 117 117 * sorted float values based on pre-sort index positions. 118 118 * 119 * @return psIntArray* : Pointer to psIntArray of sorted indices.119 * @return psIntArray* : Pointer to psIntArray of sorted indices. 120 120 */ 121 121 122 psVector *psVectorSortIndex(psVector * restrict outVector, const psVector* restrict inVector);122 psVector* psVectorSortIndex(psVector* restrict outVector, const psVector* restrict inVector); 123 123 124 124 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
