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_psMatrix07.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
     
    4646    // Test A - Create input and output images
    4747    printPositiveTestHeader(stdout, "psMatrix", "Create input and output images and vectors");
    48     v1 = (psVector*)psVectorAlloc(PS_TYPE_F64, 3);
     48    v1 = (psVector*)psVectorAlloc(3, PS_TYPE_F64);
    4949    m1 = (psImage*)psImageAlloc(1, 3, PS_TYPE_F64);
    50     v2 = (psVector*)psVectorAlloc(PS_TYPE_F64, 3);
     50    v2 = (psVector*)psVectorAlloc(3, PS_TYPE_F64);
    5151    m2 = (psImage*)psImageAlloc(1, 3, PS_TYPE_F64);
    5252    m1->data.F64[0][0] = 0.0;
    5353    m1->data.F64[1][0] = 1.0;
    5454    m1->data.F64[2][0] = 2.0;
    55     v2->vec.d[0] = 0.0;
    56     v2->vec.d[1] = 1.0;
    57     v2->vec.d[2] = 2.0;
     55    v2->data.F64[0] = 0.0;
     56    v2->data.F64[1] = 1.0;
     57    v2->data.F64[2] = 2.0;
    5858    v2->n = 3;
    5959    PRINT_MATRIX(m1);
Note: See TracChangeset for help on using the changeset viewer.