IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 12, 2005, 12:17:02 PM (22 years ago)
Author:
desonia
Message:

added tests for some psFits functions.

Location:
trunk/psLib/src/dataManip
Files:
2 edited

Legend:

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

    r2702 r2962  
    2929 *  @author Ross Harman, MHPCC
    3030 *
    31  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    32  *  @date $Date: 2004-12-11 03:06:31 $
     31 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     32 *  @date $Date: 2005-01-12 22:17:01 $
    3333 *
    3434 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    377377// Preprocessor macro function to create arithmetic function operation name
    378378#define BINARY_OP(DIM1,DIM2,OUT,IN1,OP,IN2)                                                                  \
    379 if(!strncmp(OP, "+", 1)) {                                                                                   \
     379if(!strncmp(OP, "=", 1)) {                                                                                   \
     380    BINARY_TYPE(DIM1,DIM2,OUT,IN1,*i2,IN2);                                                                  \
     381} else if(!strncmp(OP, "+", 1)) {                                                                            \
    380382    BINARY_TYPE(DIM1,DIM2,OUT,IN1,*i1 + *i2,IN2);                                                            \
    381383} else if(!strncmp(OP, "-", 1)) {                                                                            \
     
    384386    BINARY_TYPE(DIM1,DIM2,OUT,IN1,*i1 * *i2,IN2);                                                            \
    385387} 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);                                                            \
    387389} else if(!strncmp(OP, "^", 1)) {                                                                            \
    388390    if(PS_IS_PSELEMTYPE_COMPLEX(IN1->type)) {                                                                \
  • trunk/psLib/src/dataManip/psMatrixVectorArithmetic.h

    r2204 r2962  
    3030 *  @author Ross Harman, MHPCC
    3131 *
    32  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    33  *  @date $Date: 2004-10-27 00:57:31 $
     32 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     33 *  @date $Date: 2005-01-12 22:17:01 $
    3434 *
    3535 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4949 *      out = in1 op in2,
    5050 *
    51  *      Where op is: "+", "-", "*", "/", "^", "min", or "max"
     51 *      Where op is: "=", "+", "-", "*", "/", "^", "min", or "max"
    5252 *
    53  *  This function only supports vector-vector or image-image opertions.
     53 *  This function only supports vector-vector or image-image operations.
    5454 *
    5555 *  @return  psType* : Pointer to either psImage or psVector.
Note: See TracChangeset for help on using the changeset viewer.