IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2007, 2:39:51 PM (19 years ago)
Author:
Paul Price
Message:

Removing complex number support. No-one was using it, and it prevents compilation on Solaris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/math/tap_psMatrixVectorArithmetic03.c

    r10945 r12431  
    99 *     Inconsistent dimensionality
    1010 *     Division by zero
    11  *     Attempt to use min with complex numbers
    12  *     Attempt to use max with complex numbers
    1311 *     Invalid operation
    1412 *
     
    1715 *  @author  Ross Harman, MHPCC
    1816 *
    19  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    20  *  @date  $Date: 2007-01-06 00:48:54 $
     17 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     18 *  @date  $Date: 2007-03-14 00:39:51 $
    2119 *
    2220 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5654    CREATE_AND_SET_IMAGE(image3,F32,0,3,3);
    5755    CREATE_AND_SET_IMAGE(image4,F64,0,2,2);
    58     CREATE_AND_SET_IMAGE(image5,C32,1+1i,3,3);
    5956    CREATE_AND_SET_VECTOR(vector1,F64,0,2);
    6057    CREATE_AND_SET_VECTOR(vector2,F64,0,3);
     
    203200        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    204201    }
    205 
    206     // Attempt to use min with complex numbers
    207     // Following should generate error message
    208     if (0) {
    209         psMemId id = psMemGetId();
    210         psImage* image6 = (psImage*)psBinaryOp(image6, image5, "min", image5);
    211         ok(image6 == NULL, "psUnaryOp returned NULL with min of complex numbers");
    212         psFree(image6);
    213         ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    214     }
    215 
    216 
    217     // Attempt to use max with complex numbers
    218     // Following should generate an error message
    219     if (0) {
    220         psMemId id = psMemGetId();
    221         psImage* image6 = (psImage*)psBinaryOp(image6, image5, "max", image5);
    222         ok(image6 == NULL, "psUnaryOp returned NULL with max of complex numbers");
    223         psFree(image6);
    224         ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    225     }
    226 
    227202
    228203    // Invalid operation
Note: See TracChangeset for help on using the changeset viewer.