IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2005, 12:02:16 PM (21 years ago)
Author:
desonia
Message:

changed PS_PI* to M_PI*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psMatrixVectorArithmetic02.c

    r3682 r3884  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.12 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2005-04-07 20:27:42 $
     12 *  @version $Revision: 1.13 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2005-05-11 22:02:16 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    131131    testUnaryOpM( log, F64, 1000.0, 0.0, 3, 2, 3 );
    132132    testUnaryOpM( log, C32, 1000.0 + 0.0i, 0.0 + 0.0i, 3, 2, 3 );
    133     testUnaryOpM( sin, S32, PS_PI_2, 0, 3, 2, 1 );
    134     testUnaryOpM( sin, F32, PS_PI_2, 0.0, 3, 2, 1.0 );
    135     testUnaryOpM( sin, F64, PS_PI_2, 0.0, 3, 2, 1.0 );
    136     testUnaryOpM( sin, C32, PS_PI_2 + 0.0i, 0.0 + 0.0i, 3, 2, 1.0 );
     133    testUnaryOpM( sin, S32, M_PI_2, 0, 3, 2, 1 );
     134    testUnaryOpM( sin, F32, M_PI_2, 0.0, 3, 2, 1.0 );
     135    testUnaryOpM( sin, F64, M_PI_2, 0.0, 3, 2, 1.0 );
     136    testUnaryOpM( sin, C32, M_PI_2 + 0.0i, 0.0 + 0.0i, 3, 2, 1.0 );
    137137    testUnaryOpM( dsin, S32, 90, 0, 3, 2 , 1);
    138138    testUnaryOpM( dsin, F32, 90.0, 0.0, 3, 2, 1.0 );
     
    147147    testUnaryOpM( dcos, F64, 0.0, 0.0, 3, 2, 1.0 );
    148148    testUnaryOpM( dcos, C32, 0.0 + 0.0i, 0.0 + 0.0i, 3, 2, 1.0 );
    149     testUnaryOpM( tan, S32, PS_PI_4, 0, 3, 2, 1);
    150     testUnaryOpM( tan, F32, PS_PI_4, 0.0, 3, 2, 1.0 );
    151     testUnaryOpM( tan, F64, PS_PI_4, 0.0, 3, 2, 1.0 );
    152     testUnaryOpM( tan, C32, PS_PI_4 + 0.0i, 0.0 + 0.0i, 3, 2, 1 );
     149    testUnaryOpM( tan, S32, M_PI_4, 0, 3, 2, 1);
     150    testUnaryOpM( tan, F32, M_PI_4, 0.0, 3, 2, 1.0 );
     151    testUnaryOpM( tan, F64, M_PI_4, 0.0, 3, 2, 1.0 );
     152    testUnaryOpM( tan, C32, M_PI_4 + 0.0i, 0.0 + 0.0i, 3, 2, 1 );
    153153    testUnaryOpM( dtan, S32, 45, 0, 3, 2, 1 );
    154154    testUnaryOpM( dtan, F32, 45.0, 0.0, 3, 2, 1.0 );
    155155    testUnaryOpM( dtan, F64, 45.0, 0.0, 3, 2, 1.0 );
    156156    testUnaryOpM( dtan, C32, 45.0 + 45.0i, 0.0 + 0.0i, 3, 2, 1.0 );
    157     testUnaryOpM( asin, S32, 1, 0, 3, 2, PS_PI_2);
    158     testUnaryOpM( asin, F32, 1.0, 0.0, 3, 2, PS_PI_2  );
    159     testUnaryOpM( asin, F64, 1.0, 0.0, 3, 2, PS_PI_2);
    160     testUnaryOpM( asin, C32, 1.0 + 1.0i, 0.0 + 0.0i, 3, 2, PS_PI_2);
     157    testUnaryOpM( asin, S32, 1, 0, 3, 2, M_PI_2);
     158    testUnaryOpM( asin, F32, 1.0, 0.0, 3, 2, M_PI_2  );
     159    testUnaryOpM( asin, F64, 1.0, 0.0, 3, 2, M_PI_2);
     160    testUnaryOpM( asin, C32, 1.0 + 1.0i, 0.0 + 0.0i, 3, 2, M_PI_2);
    161161    testUnaryOpM( dasin, S32, 1.0, 0, 3, 2, 90 );
    162162    testUnaryOpM( dasin, F32, 1.0, 0.0, 3, 2, 90.0 );
    163163    testUnaryOpM( dasin, F64, 1.0, 0.0, 3, 2, 90.0 );
    164164    testUnaryOpM( dasin, C32, 1.0 + 1.0i, 0.0 + 0.0i, 3, 2, 90.0 );
    165     testUnaryOpM( acos, S32, 0, 0, 3, 2, PS_PI_2);
    166     testUnaryOpM( acos, F32, 0.0, 0.0, 3, 2, PS_PI_2 );
    167     testUnaryOpM( acos, F64, 0.0, 0.0, 3, 2, PS_PI_2 );
    168     testUnaryOpM( acos, C32, 0.0 + 0.0i, 0.0 + 0.0i, 3, 2, PS_PI_2 );
     165    testUnaryOpM( acos, S32, 0, 0, 3, 2, M_PI_2);
     166    testUnaryOpM( acos, F32, 0.0, 0.0, 3, 2, M_PI_2 );
     167    testUnaryOpM( acos, F64, 0.0, 0.0, 3, 2, M_PI_2 );
     168    testUnaryOpM( acos, C32, 0.0 + 0.0i, 0.0 + 0.0i, 3, 2, M_PI_2 );
    169169    testUnaryOpM( dacos, S32, 0, 0, 3, 2, 90 );
    170170    testUnaryOpM( dacos, F32, 0.0, 0.0, 3, 2, 90.0 );
    171171    testUnaryOpM( dacos, F64, 0.0, 0.0, 3, 2, 90.0 );
    172172    testUnaryOpM( dacos, C32, 0.0 + 0.0i, 0.0 + 0.0i, 3, 2, 90.0 );
    173     testUnaryOpM( atan, S32, 1, 0, 3, 2, PS_PI_4);
    174     testUnaryOpM( atan, F32, 1.0, 0.0, 3, 2, PS_PI_4 );
    175     testUnaryOpM( atan, F64, 1.0, 0.0, 3, 2, PS_PI_4);
    176     testUnaryOpM( atan, C32, 1.0 + 0.0i, 0.0 + 0.0i, 3, 2, PS_PI_4);
     173    testUnaryOpM( atan, S32, 1, 0, 3, 2, M_PI_4);
     174    testUnaryOpM( atan, F32, 1.0, 0.0, 3, 2, M_PI_4 );
     175    testUnaryOpM( atan, F64, 1.0, 0.0, 3, 2, M_PI_4);
     176    testUnaryOpM( atan, C32, 1.0 + 0.0i, 0.0 + 0.0i, 3, 2, M_PI_4);
    177177    testUnaryOpM( datan, S32, 1, 0, 3, 2, 45 );
    178178    testUnaryOpM( datan, F32, 1.0, 0.0, 3, 2, 45.0 );
     
    216216    testUnaryOpV( log, F64, 1000.0, 0.0, 3, 3 );
    217217    testUnaryOpV( log, C32, 1000.0 + 0.0i, 0.0 + 0.0i, 3, 3 );
    218     testUnaryOpV( sin, S32, PS_PI_2, 0, 3, 1 );
    219     testUnaryOpV( sin, F32, PS_PI_2, 0.0, 3, 1.0 );
    220     testUnaryOpV( sin, F64, PS_PI_2, 0.0, 3, 1.0 );
    221     testUnaryOpV( sin, C32, PS_PI_2 + 0.0i, 0.0 + 0.0i, 3, 1.0 );
     218    testUnaryOpV( sin, S32, M_PI_2, 0, 3, 1 );
     219    testUnaryOpV( sin, F32, M_PI_2, 0.0, 3, 1.0 );
     220    testUnaryOpV( sin, F64, M_PI_2, 0.0, 3, 1.0 );
     221    testUnaryOpV( sin, C32, M_PI_2 + 0.0i, 0.0 + 0.0i, 3, 1.0 );
    222222    testUnaryOpV( dsin, S32, 90, 0, 3, 1);
    223223    testUnaryOpV( dsin, F32, 90.0, 0.0, 3, 1.0 );
     
    232232    testUnaryOpV( dcos, F64, 0.0, 0.0, 3, 1.0 );
    233233    testUnaryOpV( dcos, C32, 0.0 + 0.0i, 0.0 + 0.0i, 3, 1.0 );
    234     testUnaryOpV( tan, S32, PS_PI_4, 0, 3, 1);
    235     testUnaryOpV( tan, F32, PS_PI_4, 0.0, 3, 1.0 );
    236     testUnaryOpV( tan, F64, PS_PI_4, 0.0, 3, 1.0 );
    237     testUnaryOpV( tan, C32, PS_PI_4 + 0.0i, 0.0 + 0.0i, 3, 1 );
     234    testUnaryOpV( tan, S32, M_PI_4, 0, 3, 1);
     235    testUnaryOpV( tan, F32, M_PI_4, 0.0, 3, 1.0 );
     236    testUnaryOpV( tan, F64, M_PI_4, 0.0, 3, 1.0 );
     237    testUnaryOpV( tan, C32, M_PI_4 + 0.0i, 0.0 + 0.0i, 3, 1 );
    238238    testUnaryOpV( dtan, S32, 45, 0, 3, 1 );
    239239    testUnaryOpV( dtan, F32, 45.0, 0.0, 3, 1.0 );
    240240    testUnaryOpV( dtan, F64, 45.0, 0.0, 3, 1.0 );
    241241    testUnaryOpV( dtan, C32, 45.0 + 45.0i, 0.0 + 0.0i, 3, 1.0 );
    242     testUnaryOpV( asin, S32, 1, 0, 3, PS_PI_2);
    243     testUnaryOpV( asin, F32, 1.0, 0.0, 3, PS_PI_2  );
    244     testUnaryOpV( asin, F64, 1.0, 0.0, 3, PS_PI_2);
    245     testUnaryOpV( asin, C32, 1.0 + 1.0i, 0.0 + 0.0i, 3, PS_PI_2);
     242    testUnaryOpV( asin, S32, 1, 0, 3, M_PI_2);
     243    testUnaryOpV( asin, F32, 1.0, 0.0, 3, M_PI_2  );
     244    testUnaryOpV( asin, F64, 1.0, 0.0, 3, M_PI_2);
     245    testUnaryOpV( asin, C32, 1.0 + 1.0i, 0.0 + 0.0i, 3, M_PI_2);
    246246    testUnaryOpV( dasin, S32, 1.0, 0, 3, 90 );
    247247    testUnaryOpV( dasin, F32, 1.0, 0.0, 3, 90.0 );
    248248    testUnaryOpV( dasin, F64, 1.0, 0.0, 3, 90.0 );
    249249    testUnaryOpV( dasin, C32, 1.0 + 1.0i, 0.0 + 0.0i, 3, 90.0 );
    250     testUnaryOpV( acos, S32, 0, 0, 3, PS_PI_2);
    251     testUnaryOpV( acos, F32, 0.0, 0.0, 3, PS_PI_2 );
    252     testUnaryOpV( acos, F64, 0.0, 0.0, 3, PS_PI_2 );
    253     testUnaryOpV( acos, C32, 0.0 + 0.0i, 0.0 + 0.0i, 3, PS_PI_2 );
     250    testUnaryOpV( acos, S32, 0, 0, 3, M_PI_2);
     251    testUnaryOpV( acos, F32, 0.0, 0.0, 3, M_PI_2 );
     252    testUnaryOpV( acos, F64, 0.0, 0.0, 3, M_PI_2 );
     253    testUnaryOpV( acos, C32, 0.0 + 0.0i, 0.0 + 0.0i, 3, M_PI_2 );
    254254    testUnaryOpV( dacos, S32, 0, 0, 3, 90 );
    255255    testUnaryOpV( dacos, F32, 0.0, 0.0, 3, 90.0 );
    256256    testUnaryOpV( dacos, F64, 0.0, 0.0, 3, 90.0 );
    257257    testUnaryOpV( dacos, C32, 0.0 + 0.0i, 0.0 + 0.0i, 3, 90.0 );
    258     testUnaryOpV( atan, S32, 1, 0, 3, PS_PI_4);
    259     testUnaryOpV( atan, F32, 1.0, 0.0, 3, PS_PI_4 );
    260     testUnaryOpV( atan, F64, 1.0, 0.0, 3, PS_PI_4);
    261     testUnaryOpV( atan, C32, 1.0 + 0.0i, 0.0 + 0.0i, 3, PS_PI_4);
     258    testUnaryOpV( atan, S32, 1, 0, 3, M_PI_4);
     259    testUnaryOpV( atan, F32, 1.0, 0.0, 3, M_PI_4 );
     260    testUnaryOpV( atan, F64, 1.0, 0.0, 3, M_PI_4);
     261    testUnaryOpV( atan, C32, 1.0 + 0.0i, 0.0 + 0.0i, 3, M_PI_4);
    262262    testUnaryOpV( datan, S32, 1, 0, 3, 45 );
    263263    testUnaryOpV( datan, F32, 1.0, 0.0, 3, 45.0 );
Note: See TracChangeset for help on using the changeset viewer.