Changeset 831 for trunk/psLib/test/collections/tst_psSort_03.c
- Timestamp:
- Jun 2, 2004, 1:29:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psSort_03.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psSort_03.c
r717 r831 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 5-18 19:22:34$12 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-02 23:29:29 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 // Test A - Create float vectors 30 30 printPositiveTestHeader(stdout,"psSort", "Create float vectors of different sizes"); 31 in = psVectorAlloc( PS_TYPE_FLOAT, 5);31 in = psVectorAlloc(5, PS_TYPE_F32); 32 32 in->n = 5; 33 out = psVectorAlloc( PS_TYPE_FLOAT, 6);33 out = psVectorAlloc(6, PS_TYPE_F32); 34 34 out->n = 6; 35 35 in->n = 5; 36 36 for(int i=0; i<5; i++) { 37 printf("arr[%d] = %f\n", i, in-> vec.f[i]);37 printf("arr[%d] = %f\n", i, in->data.F32[i]); 38 38 } 39 39 printFooter(stdout, "psSort", "Create float vectors of different sizes", true);
Note:
See TracChangeset
for help on using the changeset viewer.
