IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 12:34:06 PM (22 years ago)
Author:
desonia
Message:

astyle fixed?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psMatrix05.c

    r1347 r1406  
    1010*  @author  Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
    13 *  @date  $Date: 2004-07-30 03:13:08 $
     12*  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
     13*  @date  $Date: 2004-08-06 22:34:06 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2222#define PRINT_MATRIX(IMAGE)                         \
    2323for(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
    3131int main( int argc,
    3232          char* argv[] )
     
    3535    psImage *inImage1 = NULL;
    3636    psImage *inImage2 = NULL;
    37    
    38    
     37
     38
    3939    // Test A - Create input and output images
    4040    printPositiveTestHeader( stdout, "psMatrix", "Create input and output images" );
     
    5454    PRINT_MATRIX( inImage2 );
    5555    printFooter( stdout, "psMatrix", "Create input and output images", true );
    56    
    57    
     56
     57
    5858    // Test B - Multiply images
    5959    printPositiveTestHeader( stdout, "psMatrix", "Multiply images" );
     
    6161    PRINT_MATRIX( outImage );
    6262    printFooter( stdout, "psMatrix", "Multiply images", true );
    63    
    64    
     63
     64
    6565    // Test C - Free input and output images
    6666    printPositiveTestHeader( stdout, "psMatrix", "Free input and output images" );
     
    7070    int nLeaks = psMemCheckLeaks( 0, NULL, stdout );
    7171    if ( nLeaks != 0 ) {
    72             printf( "ERROR: Found %d memory leaks\n", nLeaks );
    73         }
     72        printf( "ERROR: Found %d memory leaks\n", nLeaks );
     73    }
    7474    int nBad = psMemCheckCorruption( 0 );
    7575    if ( nBad ) {
    76             printf( "ERROR: Found %d bad memory blocks\n", nBad );
    77         }
     76        printf( "ERROR: Found %d bad memory blocks\n", nBad );
     77    }
    7878    printFooter( stdout, "psMatrix" , "Free input and output images", true );
    79    
     79
    8080    return 0;
    8181}
Note: See TracChangeset for help on using the changeset viewer.