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_psMatrix06.c

    r1348 r1406  
    1010*  @author  Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
    13 *  @date  $Date: 2004-07-30 03:48:15 $
     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[] )
     
    3434    psImage * outImage = NULL;
    3535    psImage *inImage = NULL;
    36    
    37    
     36
     37
    3838    // Test A - Create input and output images
    3939    printPositiveTestHeader( stdout, "psMatrix", "Create input and output images" );
    4040    outImage = ( psImage* ) psImageAlloc( 4, 4, PS_TYPE_F64 );
    4141    inImage = ( psImage* ) psImageAlloc( 4, 4, PS_TYPE_F64 );
    42    
     42
    4343    inImage->data.F64[ 0 ][ 0 ] = 1. / 1.;
    4444    inImage->data.F64[ 0 ][ 1 ] = 1. / 2.;
    4545    inImage->data.F64[ 0 ][ 2 ] = 1. / 3.;
    4646    inImage->data.F64[ 0 ][ 3 ] = 1. / 4.;
    47    
     47
    4848    inImage->data.F64[ 1 ][ 0 ] = 1. / 2.;
    4949    inImage->data.F64[ 1 ][ 1 ] = 1. / 3.;
    5050    inImage->data.F64[ 1 ][ 2 ] = 1. / 4.;
    5151    inImage->data.F64[ 1 ][ 3 ] = 1. / 5.;
    52    
     52
    5353    inImage->data.F64[ 2 ][ 0 ] = 1. / 3.;
    5454    inImage->data.F64[ 2 ][ 1 ] = 1. / 4.;
    5555    inImage->data.F64[ 2 ][ 2 ] = 1. / 5.;
    5656    inImage->data.F64[ 2 ][ 3 ] = 1. / 6.;
    57    
     57
    5858    inImage->data.F64[ 3 ][ 0 ] = 1. / 4.;
    5959    inImage->data.F64[ 3 ][ 1 ] = 1. / 5.;
    6060    inImage->data.F64[ 3 ][ 2 ] = 1. / 6.;
    6161    inImage->data.F64[ 3 ][ 3 ] = 1. / 7.;
    62    
     62
    6363    PRINT_MATRIX( inImage );
    6464    printFooter( stdout, "psMatrix", "Create input and output images", true );
    65    
    66    
     65
     66
    6767    // Test B - Calculate Eigenvectors
    6868    printPositiveTestHeader( stdout, "psMatrix", "Calculate Eigenvectors" );
     
    7070    PRINT_MATRIX( outImage );
    7171    printFooter( stdout, "psMatrix", "Calculate Eigenvectors", true );
    72    
    73    
     72
     73
    7474    // Test C - Free input and output images
    7575    printPositiveTestHeader( stdout, "psMatrix", "Free input and output images" );
     
    7878    int nLeaks = psMemCheckLeaks( 0, NULL, stdout );
    7979    if ( nLeaks != 0 ) {
    80             printf( "ERROR: Found %d memory leaks\n", nLeaks );
    81         }
     80        printf( "ERROR: Found %d memory leaks\n", nLeaks );
     81    }
    8282    int nBad = psMemCheckCorruption( 0 );
    8383    if ( nBad ) {
    84             printf( "ERROR: Found %d bad memory blocks\n", nBad );
    85         }
     84        printf( "ERROR: Found %d bad memory blocks\n", nBad );
     85    }
    8686    printFooter( stdout, "psMatrix" , "Free input and output images", true );
    87    
     87
    8888    return 0;
    8989}
Note: See TracChangeset for help on using the changeset viewer.