IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 205


Ignore:
Timestamp:
Mar 10, 2004, 11:07:30 AM (22 years ago)
Author:
Paul Price
Message:

Added psType to define the types of arithmetic structures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psStdArrays.h

    r198 r205  
    44#include <complex.h>
    55#include "psArray.h"
     6
     7
     8/** Types of the elements of vectors, matrices, etc. */
     9enum {
     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 */
     24enum {
     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 */
     31typedef struct {
     32    enum psElemType type;               //!< The type
     33    enum psDimen dimen;                 //!< The dimensionality
     34} psType;
    635
    736/**
     
    1847PS_CREATE_ARRAY_TYPE(psFloat);
    1948
     49/** Define a vector as an array of real numbers */
     50typedef psFloatArray psVector;
     51
    2052/** An array of complex numbers */
    2153PS_DECLARE_ARRAY_TYPE(psComplex);
Note: See TracChangeset for help on using the changeset viewer.