Changeset 1406 for trunk/psLib/test/dataManip/tst_psMatrix05.c
- Timestamp:
- Aug 6, 2004, 12:34:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataManip/tst_psMatrix05.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psMatrix05.c
r1347 r1406 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 7-30 03:13:08$12 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-06 22:34:06 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 22 22 #define PRINT_MATRIX(IMAGE) \ 23 23 for(int i=0; i<IMAGE->numRows; i++) { \ 24 for(int j=0; j<IMAGE->numCols; j++) { \25 printf("%f ", IMAGE->data.F64[i][j]); \26 } \27 printf("\n"); \28 }29 30 24 for(int j=0; j<IMAGE->numCols; j++) { \ 25 printf("%f ", IMAGE->data.F64[i][j]); \ 26 } \ 27 printf("\n"); \ 28 } 29 30 31 31 int main( int argc, 32 32 char* argv[] ) … … 35 35 psImage *inImage1 = NULL; 36 36 psImage *inImage2 = NULL; 37 38 37 38 39 39 // Test A - Create input and output images 40 40 printPositiveTestHeader( stdout, "psMatrix", "Create input and output images" ); … … 54 54 PRINT_MATRIX( inImage2 ); 55 55 printFooter( stdout, "psMatrix", "Create input and output images", true ); 56 57 56 57 58 58 // Test B - Multiply images 59 59 printPositiveTestHeader( stdout, "psMatrix", "Multiply images" ); … … 61 61 PRINT_MATRIX( outImage ); 62 62 printFooter( stdout, "psMatrix", "Multiply images", true ); 63 64 63 64 65 65 // Test C - Free input and output images 66 66 printPositiveTestHeader( stdout, "psMatrix", "Free input and output images" ); … … 70 70 int nLeaks = psMemCheckLeaks( 0, NULL, stdout ); 71 71 if ( nLeaks != 0 ) { 72 printf( "ERROR: Found %d memory leaks\n", nLeaks );73 }72 printf( "ERROR: Found %d memory leaks\n", nLeaks ); 73 } 74 74 int nBad = psMemCheckCorruption( 0 ); 75 75 if ( nBad ) { 76 printf( "ERROR: Found %d bad memory blocks\n", nBad );77 }76 printf( "ERROR: Found %d bad memory blocks\n", nBad ); 77 } 78 78 printFooter( stdout, "psMatrix" , "Free input and output images", true ); 79 79 80 80 return 0; 81 81 }
Note:
See TracChangeset
for help on using the changeset viewer.
