Changeset 205
- Timestamp:
- Mar 10, 2004, 11:07:30 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psStdArrays.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psStdArrays.h
r198 r205 4 4 #include <complex.h> 5 5 #include "psArray.h" 6 7 8 /** Types of the elements of vectors, matrices, etc. */ 9 enum { 10 PS_TYPE_CHAR, //!< Character 11 PS_TYPE_SHORT, //!< Short integer 12 PS_TYPE_INT, //!< Integer 13 PS_TYPE_LONG, //!< Long integer 14 PS_TYPE_UCHAR, //!< Unsigned character 15 PS_TYPE_USHORT, //!< Unsigned short integer 16 PS_TYPE_UINT, //!< Unsigned integer 17 PS_TYPE_ULONG, //!< Unsigned long integer 18 PS_TYPE_FLOAT, //!< Floating point 19 PS_TYPE_DOUBLE, //!< Double-precision floating point 20 PS_TYPE_COMPLEX //!< Complex numbers consisting of floating point 21 } psElemType; 22 23 /** Dimensions of a data type */ 24 enum { 25 PS_DIMEN_SCALAR, //!< Scalar 26 PS_DIMEN_VECTOR, //!< A vector 27 PS_DIMEN_MATRIX //!< A matrix 28 } psDimen; 29 30 /** The type of a data type */ 31 typedef struct { 32 enum psElemType type; //!< The type 33 enum psDimen dimen; //!< The dimensionality 34 } psType; 6 35 7 36 /** … … 18 47 PS_CREATE_ARRAY_TYPE(psFloat); 19 48 49 /** Define a vector as an array of real numbers */ 50 typedef psFloatArray psVector; 51 20 52 /** An array of complex numbers */ 21 53 PS_DECLARE_ARRAY_TYPE(psComplex);
Note:
See TracChangeset
for help on using the changeset viewer.
