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

    r1406 r2204  
    1414 *  @author  Ross Harman, MHPCC
    1515 *
    16  *  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2004-08-06 22:34:06 $
     16 *  @version $Revision: 1.9 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2004-10-27 00:57:33 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2525
    2626#define PRINT_MATRIX(IMAGE)                     \
    27 for(int i=IMAGE->numRows-1; i>-1; i--) {        \
    28     for(int j=0; j<IMAGE->numCols; j++) {       \
     27for(psS32 i=IMAGE->numRows-1; i>-1; i--) {        \
     28    for(psS32 j=0; j<IMAGE->numCols; j++) {       \
    2929        printf("%f ", IMAGE->data.F64[i][j]);   \
    3030    }                                           \
     
    3333\
    3434#define PRINT_VECTOR(VECTOR)                    \
    35 for(int i=0; i<VECTOR->n; i++) {                \
     35for(psS32 i=0; i<VECTOR->n; i++) {                \
    3636    printf("%f\n", VECTOR->data.F64[i]);        \
    3737}
    3838
    3939
    40 int main(int argc,
    41          char* argv[])
     40psS32 main(psS32 argc,
     41           char* argv[])
    4242{
    4343    psImage *luImage = NULL;
     
    112112    psFree(inVector);
    113113    psMemCheckLeaks(0, NULL, stdout);
    114     int nBad = psMemCheckCorruption(0);
     114    psS32 nBad = psMemCheckCorruption(0);
    115115    if(nBad) {
    116116        printf("ERROR: Found %d bad memory blocks\n", nBad);
Note: See TracChangeset for help on using the changeset viewer.