Changeset 1575
- Timestamp:
- Aug 18, 2004, 3:45:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psVector.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psVector.h
r753 r1575 13 13 const int nalloc; ///< allocated data block 14 14 union { 15 psS8 *S8; ///< Pointers to short-integerdata16 psS16 *S16;///< Pointers to short-integer data17 psS32 *S32;///< Pointers to integer data18 psS64 *S64;///< Pointers to long-integer data19 psU8 *U18; ///< Pointers to unsigned-short-integerdata20 psU16 *U16;///< Pointers to unsigned-short-integer data21 psU32 *U32;///< Pointers to unsigned-integer data22 psU64 *U64;///< Pointers to unsigned-long-integer data23 psF32 *F32;///< Pointers to floating-point data24 psF64 *F64;///< Pointers to double-precision data25 psF32 *C32;///< Pointers to complex floating-point data26 void **V; 15 psS8 *S8; ///< Pointers to byte data 16 psS16 *S16; ///< Pointers to short-integer data 17 psS32 *S32; ///< Pointers to integer data 18 psS64 *S64; ///< Pointers to long-integer data 19 psU8 *U18; ///< Pointers to unsigned-byte data 20 psU16 *U16; ///< Pointers to unsigned-short-integer data 21 psU32 *U32; ///< Pointers to unsigned-integer data 22 psU64 *U64; ///< Pointers to unsigned-long-integer data 23 psF32 *F32; ///< Pointers to floating-point data 24 psF64 *F64; ///< Pointers to double-precision data 25 psC32 *C32; ///< Pointers to complex floating-point data 26 psC64 *C64; ///< Pointers to complex floating-point data 27 27 } data; 28 28 } psVector; … … 37 37 /// Create a vector of the specified size and type. 38 38 psVector * 39 psVectorAlloc (int nalloc, ///< vector length40 psElemType type) ///< vector data type39 psVectorAlloc(int nalloc, ///< vector length 40 psElemType type) ///< vector data type 41 41 ; 42 42 43 43 /// Extend a vector 44 44 psVector * 45 psVectorRealloc (const psVector *vector, ///< vector to reallocate 46 int nalloc) ///< required length 47 ; 48 49 /// Create a subvector of the specified range. 50 psVector * 51 psVectorSubset(const psVector *vector, ///< parent vector 52 int start, ///< subvector range start 53 int end) ///< subvector range end 54 ; 55 56 /// Destroy the specified vector 57 void 58 psVectorFree(psVector *restrict vector, ///< free this vector 59 void (*elemFree)(void *)) ///< destructor for array data 60 ; 61 62 /** Transpose a vector. Changes the type to a PS_DIMEN_TRANSV */ 63 psVector *psVectorTranspose(psVector *out, ///< Output vector, or NULL 64 psVector *myVector) ///< Vector to be transposed 45 psVectorRealloc(const psVector *vector, ///< vector to reallocate 46 int nalloc) ///< required length 65 47 ; 66 48
Note:
See TracChangeset
for help on using the changeset viewer.
