IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

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

    r1406 r2204  
    1616 *  @author  Ross Harman, MHPCC
    1717 *
    18  *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
    19  *  @date  $Date: 2004-08-06 22:34:06 $
     18 *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
     19 *  @date  $Date: 2004-10-27 00:57:33 $
    2020 *
    2121 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2727
    2828#define PRINT_MATRIX(IMAGE)                         \
    29 for(int i=0; i<IMAGE->numRows; i++) {               \
    30     for(int j=0; j<IMAGE->numCols; j++) {           \
     29for(psS32 i=0; i<IMAGE->numRows; i++) {               \
     30    for(psS32 j=0; j<IMAGE->numCols; j++) {           \
    3131        printf("%f ", IMAGE->data.F64[i][j]);       \
    3232    }                                               \
     
    3535
    3636#define PRINT_VECTOR(VECTOR)                        \
    37 for(int i=0; i<VECTOR->n; i++) {                    \
     37for(psS32 i=0; i<VECTOR->n; i++) {                    \
    3838    printf("%f\n", VECTOR->data.F64[i]);            \
    3939}
    4040
    4141
    42 int main(int argc,
    43          char* argv[])
     42psS32 main(psS32 argc,
     43           char* argv[])
    4444{
    4545    psVector *v1 = NULL;
     
    169169    psFree(badImage);
    170170    psMemCheckLeaks(0, NULL, stdout);
    171     int nBad = psMemCheckCorruption(0);
     171    psS32 nBad = psMemCheckCorruption(0);
    172172    if(nBad) {
    173173        printf("ERROR: Found %d bad memory blocks\n", nBad);
Note: See TracChangeset for help on using the changeset viewer.