Changeset 831 for trunk/psLib/test/dataManip/tst_psMatrix07.c
- Timestamp:
- Jun 2, 2004, 1:29:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataManip/tst_psMatrix07.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psMatrix07.c
r798 r831 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-0 5-28 02:52:23$13 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-06-02 23:29:39 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 #define PRINT_VECTOR(VECTOR) \ 32 32 for(int i=0; i<VECTOR->n; i++) { \ 33 printf("%f\n", VECTOR-> vec.d[i]); \33 printf("%f\n", VECTOR->data.F64[i]); \ 34 34 } 35 35 … … 46 46 // Test A - Create input and output images 47 47 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); 49 49 m1 = (psImage*)psImageAlloc(1, 3, PS_TYPE_F64); 50 v2 = (psVector*)psVectorAlloc( PS_TYPE_F64, 3);50 v2 = (psVector*)psVectorAlloc(3, PS_TYPE_F64); 51 51 m2 = (psImage*)psImageAlloc(1, 3, PS_TYPE_F64); 52 52 m1->data.F64[0][0] = 0.0; 53 53 m1->data.F64[1][0] = 1.0; 54 54 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; 58 58 v2->n = 3; 59 59 PRINT_MATRIX(m1);
Note:
See TracChangeset
for help on using the changeset viewer.
