IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMatrixVectorArithmetic.c

    r2021 r2204  
    2929 *  @author Ross Harman, MHPCC
    3030 *
    31  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    32  *  @date $Date: 2004-10-08 02:48:01 $
     31 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     32 *  @date $Date: 2004-10-27 00:57:31 $
    3333 *
    3434 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8888#define SCALAR_VECTOR(OUT,IN1,OP,IN2,TYPE)                                                                   \
    8989{                                                                                                            \
    90     int i = 0;                                                                                               \
    91     int npt = 0;                                                                                             \
     90    psS32 i = 0;                                                                                               \
     91    psS32 npt = 0;                                                                                             \
    9292    ps##TYPE *o = NULL;                                                                                      \
    9393    ps##TYPE *i1 = NULL;                                                                                     \
     
    104104#define SCALAR_IMAGE(OUT,IN1,OP,IN2,TYPE)                                                                    \
    105105{                                                                                                            \
    106     int i = 0;                                                                                               \
    107     int j = 0;                                                                                               \
    108     int numRows = 0;                                                                                         \
    109     int numCols = 0;                                                                                         \
     106    psS32 i = 0;                                                                                               \
     107    psS32 j = 0;                                                                                               \
     108    psS32 numRows = 0;                                                                                         \
     109    psS32 numCols = 0;                                                                                         \
    110110    ps##TYPE *o = NULL;                                                                                      \
    111111    ps##TYPE *i1 = NULL;                                                                                     \
     
    126126#define VECTOR_SCALAR(OUT,IN1,OP,IN2,TYPE)                                                                   \
    127127{                                                                                                            \
    128     int i = 0;                                                                                               \
    129     int n1 = 0;                                                                                              \
     128    psS32 i = 0;                                                                                               \
     129    psS32 n1 = 0;                                                                                              \
    130130    ps##TYPE *o = NULL;                                                                                      \
    131131    ps##TYPE *i1 = NULL;                                                                                     \
     
    142142#define VECTOR_VECTOR(OUT,IN1,OP,IN2,TYPE)                                                                   \
    143143{                                                                                                            \
    144     int i = 0;                                                                                               \
    145     int n1 = 0;                                                                                              \
    146     int n2 = 0;                                                                                              \
     144    psS32 i = 0;                                                                                               \
     145    psS32 n1 = 0;                                                                                              \
     146    psS32 n2 = 0;                                                                                              \
    147147    ps##TYPE *o = NULL;                                                                                      \
    148148    ps##TYPE *i1 = NULL;                                                                                     \
     
    167167#define VECTOR_IMAGE(OUT,IN1,OP,IN2,TYPE)                                                                    \
    168168{                                                                                                            \
    169     int i = 0;                                                                                               \
    170     int j = 0;                                                                                               \
    171     int n1 = 0;                                                                                              \
    172     int numRows2 = 0;                                                                                        \
    173     int numCols2 = 0;                                                                                        \
     169    psS32 i = 0;                                                                                               \
     170    psS32 j = 0;                                                                                               \
     171    psS32 n1 = 0;                                                                                              \
     172    psS32 numRows2 = 0;                                                                                        \
     173    psS32 numCols2 = 0;                                                                                        \
    174174    psDimen dim1 = 0;                                                                                        \
    175175    ps##TYPE *o = NULL;                                                                                      \
     
    221221#define IMAGE_SCALAR(OUT,IN1,OP,IN2,TYPE)                                                                    \
    222222{                                                                                                            \
    223     int i = 0;                                                                                               \
    224     int j = 0;                                                                                               \
    225     int numRows = 0;                                                                                         \
    226     int numCols = 0;                                                                                         \
     223    psS32 i = 0;                                                                                               \
     224    psS32 j = 0;                                                                                               \
     225    psS32 numRows = 0;                                                                                         \
     226    psS32 numCols = 0;                                                                                         \
    227227    ps##TYPE *o = NULL;                                                                                      \
    228228    ps##TYPE *i1 = NULL;                                                                                     \
     
    242242#define IMAGE_VECTOR(OUT,IN1,OP,IN2,TYPE)                                                                    \
    243243{                                                                                                            \
    244     int i = 0;                                                                                               \
    245     int j = 0;                                                                                               \
    246     int n2 = 0;                                                                                              \
    247     int numRows1 = 0;                                                                                        \
    248     int numCols1 = 0;                                                                                        \
     244    psS32 i = 0;                                                                                               \
     245    psS32 j = 0;                                                                                               \
     246    psS32 n2 = 0;                                                                                              \
     247    psS32 numRows1 = 0;                                                                                        \
     248    psS32 numCols1 = 0;                                                                                        \
    249249    psDimen dim2 = 0;                                                                                        \
    250250    ps##TYPE *o = NULL;                                                                                      \
     
    295295#define IMAGE_IMAGE(OUT,IN1,OP,IN2,TYPE)                                                                     \
    296296{                                                                                                            \
    297     int i = 0;                                                                                               \
    298     int j = 0;                                                                                               \
    299     int numRows1 = 0;                                                                                        \
    300     int numCols1 = 0;                                                                                        \
    301     int numRows2 = 0;                                                                                        \
    302     int numCols2 = 0;                                                                                        \
     297    psS32 i = 0;                                                                                               \
     298    psS32 j = 0;                                                                                               \
     299    psS32 numRows1 = 0;                                                                                        \
     300    psS32 numCols1 = 0;                                                                                        \
     301    psS32 numRows2 = 0;                                                                                        \
     302    psS32 numCols2 = 0;                                                                                        \
    303303    ps##TYPE *o = NULL;                                                                                      \
    304304    ps##TYPE *i1 = NULL;                                                                                     \
     
    417417}
    418418
    419 void *psBinaryOp(void *out, void *in1, char *op, void *in2)
     419psPtr psBinaryOp(psPtr out, psPtr in1, char *op, psPtr in2)
    420420{
    421421    psDimen dim1 = 0;
     
    605605#define VECTOR(OUT,IN,OP,TYPE)                                                                               \
    606606{                                                                                                            \
    607     int i = 0;                                                                                               \
    608     int nIn = 0;                                                                                             \
    609     int nOut = 0;                                                                                            \
     607    psS32 i = 0;                                                                                               \
     608    psS32 nIn = 0;                                                                                             \
     609    psS32 nOut = 0;                                                                                            \
    610610    ps##TYPE *o = NULL;                                                                                      \
    611611    ps##TYPE *i1 = NULL;                                                                                     \
     
    629629#define IMAGE(OUT,IN,OP,TYPE)                                                                                \
    630630{                                                                                                            \
    631     int i = 0;                                                                                               \
    632     int j = 0;                                                                                               \
    633     int numRowsIn = 0;                                                                                       \
    634     int numColsIn = 0;                                                                                       \
    635     int numRowsOut = 0;                                                                                      \
    636     int numColsOut = 0;                                                                                      \
     631    psS32 i = 0;                                                                                               \
     632    psS32 j = 0;                                                                                               \
     633    psS32 numRowsIn = 0;                                                                                       \
     634    psS32 numColsIn = 0;                                                                                       \
     635    psS32 numRowsOut = 0;                                                                                      \
     636    psS32 numColsOut = 0;                                                                                      \
    637637    ps##TYPE *o = NULL;                                                                                      \
    638638    ps##TYPE *i1 = NULL;                                                                                     \
     
    818818}
    819819
    820 void *psUnaryOp(void *out, void *in, char *op)
     820psPtr psUnaryOp(psPtr out, psPtr in, char *op)
    821821{
    822822    psDimen dimIn = 0;
Note: See TracChangeset for help on using the changeset viewer.