Changeset 2962 for trunk/psLib/src/dataManip
- Timestamp:
- Jan 12, 2005, 12:17:02 PM (22 years ago)
- Location:
- trunk/psLib/src/dataManip
- Files:
-
- 2 edited
-
psMatrixVectorArithmetic.c (modified) (3 diffs)
-
psMatrixVectorArithmetic.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMatrixVectorArithmetic.c
r2702 r2962 29 29 * @author Ross Harman, MHPCC 30 30 * 31 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $32 * @date $Date: 200 4-12-11 03:06:31 $31 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 32 * @date $Date: 2005-01-12 22:17:01 $ 33 33 * 34 34 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 377 377 // Preprocessor macro function to create arithmetic function operation name 378 378 #define BINARY_OP(DIM1,DIM2,OUT,IN1,OP,IN2) \ 379 if(!strncmp(OP, "+", 1)) { \ 379 if(!strncmp(OP, "=", 1)) { \ 380 BINARY_TYPE(DIM1,DIM2,OUT,IN1,*i2,IN2); \ 381 } else if(!strncmp(OP, "+", 1)) { \ 380 382 BINARY_TYPE(DIM1,DIM2,OUT,IN1,*i1 + *i2,IN2); \ 381 383 } else if(!strncmp(OP, "-", 1)) { \ … … 384 386 BINARY_TYPE(DIM1,DIM2,OUT,IN1,*i1 * *i2,IN2); \ 385 387 } else if(!strncmp(OP, "/", 1)) { \ 386 BINARY_TYPE(DIM1,DIM2,OUT,IN1,*i1 / *i2,IN2); \388 BINARY_TYPE(DIM1,DIM2,OUT,IN1,*i1 / *i2,IN2); \ 387 389 } else if(!strncmp(OP, "^", 1)) { \ 388 390 if(PS_IS_PSELEMTYPE_COMPLEX(IN1->type)) { \ -
trunk/psLib/src/dataManip/psMatrixVectorArithmetic.h
r2204 r2962 30 30 * @author Ross Harman, MHPCC 31 31 * 32 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $33 * @date $Date: 200 4-10-27 00:57:31 $32 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2005-01-12 22:17:01 $ 34 34 * 35 35 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 49 49 * out = in1 op in2, 50 50 * 51 * Where op is: " +", "-", "*", "/", "^", "min", or "max"51 * Where op is: "=", "+", "-", "*", "/", "^", "min", or "max" 52 52 * 53 * This function only supports vector-vector or image-image oper tions.53 * This function only supports vector-vector or image-image operations. 54 54 * 55 55 * @return psType* : Pointer to either psImage or psVector.
Note:
See TracChangeset
for help on using the changeset viewer.
