Changeset 831 for trunk/psLib/test/dataManip/tst_psMatrix03.c
- Timestamp:
- Jun 2, 2004, 1:29:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataManip/tst_psMatrix03.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psMatrix03.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 … … 48 48 printPositiveTestHeader(stdout, "psMatrix", "Create input and output images and vectors"); 49 49 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); 53 53 inImage = (psImage*)psImageAlloc(3, 3, PS_TYPE_F64); 54 54 inImage->data.F64[0][0] = 2; … … 61 61 inImage->data.F64[2][1] = 1; 62 62 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; 66 66 inVector->n = 3; 67 67 PRINT_MATRIX(inImage);
Note:
See TracChangeset
for help on using the changeset viewer.
