Changeset 226 for trunk/archive/pslib/include/psStdArrays.h
- Timestamp:
- Mar 12, 2004, 3:06:45 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psStdArrays.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psStdArrays.h
r218 r226 3 3 4 4 #include <complex.h> 5 #include <stdint.h> 5 6 #include "psArray.h" 6 7 7 8 8 9 /** Types of the elements of vectors, matrices, etc. */ 9 enum {10 typedef enum { 10 11 PS_TYPE_CHAR, ///< Character 11 12 PS_TYPE_SHORT, ///< Short integer … … 18 19 PS_TYPE_FLOAT, ///< Floating point 19 20 PS_TYPE_DOUBLE, ///< Double-precision floating point 20 PS_TYPE_COMPLEX ///< Complex numbers consisting of floating point21 PS_TYPE_OTHER ///< Something else that's not supported for arithmetic21 PS_TYPE_COMPLEX, ///< Complex numbers consisting of floating point 22 PS_TYPE_OTHER, ///< Something else that's not supported for arithmetic 22 23 } psElemType; 23 24 24 25 /** Dimensions of a data type */ 25 enum {26 typedef enum { 26 27 PS_DIMEN_SCALAR, ///< Scalar 27 28 PS_DIMEN_VECTOR, ///< A vector … … 33 34 /** The type of a data type */ 34 35 typedef struct { 35 enum psElemType type;///< The type36 enumpsDimen dimen; ///< The dimensionality36 psElemType type; ///< The type 37 psDimen dimen; ///< The dimensionality 37 38 } psType; 38 39 … … 72 73 /** An array of real numbers */ 73 74 typedef struct { 74 enumpsType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!75 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 75 76 int size; ///< Total number of elements available 76 77 int n; ///< Number of elements in use … … 102 103 /** An array of complex numbers */ 103 104 typedef struct { 104 enumpsType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!105 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 105 106 int size; ///< Total number of elements available 106 107 int n; ///< Number of elements in use … … 124 125 /** An array of integers */ 125 126 typedef struct { 126 enumpsType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!127 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 127 128 int size; ///< Total number of elements available 128 129 int n; ///< Number of elements in use … … 146 147 /** An array of double-precision real numbers */ 147 148 typedef struct { 148 enumpsType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!149 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 149 150 int size; ///< Total number of elements available 150 151 int n; ///< Number of elements in use … … 168 169 /** An array of real vectors */ 169 170 typedef struct { 170 enumpsType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!171 psType type; ///< Type of data. THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT! 171 172 int size; ///< Total number of elements available 172 173 int n; ///< Number of elements in use
Note:
See TracChangeset
for help on using the changeset viewer.
