IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2004, 1:29:39 PM (22 years ago)
Author:
harman
Message:

Changed psVector to be consistent with psImage

File:
1 edited

Legend:

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

    r798 r831  
    1111 *  @author  Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    14  *  @date  $Date: 2004-05-28 02:52:23 $
     13 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     14 *  @date  $Date: 2004-06-02 23:29:39 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3131#define PRINT_VECTOR(VECTOR)                        \
    3232for(int i=0; i<VECTOR->n; i++) {               \
    33     printf("%f\n", VECTOR->vec.d[i]);          \
     33    printf("%f\n", VECTOR->data.F64[i]);          \
    3434}
    3535
     
    4848    printPositiveTestHeader(stdout, "psMatrix", "Create input and output images and vectors");
    4949    luImage = (psImage*)psImageAlloc(3, 3, PS_TYPE_F64);
    50     perm = (psVector*)psVectorAlloc(PS_TYPE_F64, 3);
    51     outVector = (psVector*)psVectorAlloc(PS_TYPE_F64, 3);
    52     inVector = (psVector*)psVectorAlloc(PS_TYPE_F64, 3);
     50    perm = (psVector*)psVectorAlloc(3, PS_TYPE_F64);
     51    outVector = (psVector*)psVectorAlloc(3, PS_TYPE_F64);
     52    inVector = (psVector*)psVectorAlloc(3, PS_TYPE_F64);
    5353    inImage = (psImage*)psImageAlloc(3, 3, PS_TYPE_F64);
    5454    inImage->data.F64[0][0] =  2;
     
    6161    inImage->data.F64[2][1] =  1;
    6262    inImage->data.F64[2][2] = -2;
    63     inVector->vec.d[0] = 18.0;
    64     inVector->vec.d[1] = 24.0;
    65     inVector->vec.d[2] =  4.0;
     63    inVector->data.F64[0] = 18.0;
     64    inVector->data.F64[1] = 24.0;
     65    inVector->data.F64[2] =  4.0;
    6666    inVector->n = 3;
    6767    PRINT_MATRIX(inImage);
Note: See TracChangeset for help on using the changeset viewer.