IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2005, 1:34:10 PM (21 years ago)
Author:
desonia
Message:

Changes to psMetadata to match latest SDRS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMatrix.c

    r3313 r3341  
    2121 *  @author Robert DeSonia, MHPCC
    2222 *
    23  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    24  *  @date $Date: 2005-02-24 00:19:51 $
     23 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     24 *  @date $Date: 2005-02-28 23:34:10 $
    2525 *
    2626 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    452452    if(numRowsIn!=numColsOut && numRowsOut!=numColsIn) {
    453453        psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psMatrix_TRANSPOSE_MISMATCH);
     454        TRANSPOSE_CLEANUP;
    454455    }
    455456
     
    542543                "Image does not have dim with 1 col or 1 row: (%d x %d).",
    543544                inImage->numRows, inImage->numCols);
    544         return outVector;
     545        psMatrixToVector_EXIT;
    545546    }
    546547
     
    557558                    "Image and vector sizes differ: (%d vs %d).",
    558559                    inImage->numRows, outVector->n);
    559             return outVector;
     560            psMatrixToVector_EXIT;
    560561        }
    561562
     
    573574                    "Image and vector sizes differ: (%d vs %d).",
    574575                    inImage->numCols, outVector->n);
    575             return outVector;
     576            psMatrixToVector_EXIT;
    576577        }
    577578
     
    603604                    "Image has more than 1 column: numCols = %d.",
    604605                    outImage->numCols);
    605             return outImage;
     606            VECTORTOMATRIX_CLEANUP;
    606607        } else if (outImage->numRows != inVector->n) {
    607608            psError(PS_ERR_BAD_PARAMETER_SIZE, true,
    608609                    "Image and vector sizes differ: (%d vs %d).",
    609610                    outImage->numRows, inVector->n);
    610             return outImage;
     611            VECTORTOMATRIX_CLEANUP;
    611612        }
    612613
     
    622623                    "Image has more than 1 row: numRows = %d.",
    623624                    outImage->numRows);
    624             return outImage;
     625            VECTORTOMATRIX_CLEANUP;
    625626        } else if (outImage->numCols != inVector->n) {
    626627            psError(PS_ERR_BAD_PARAMETER_SIZE, true,
    627628                    "Image and vector sizes differ: (%d vs %d).",
    628629                    outImage->numCols, inVector->n);
    629             return outImage;
     630            VECTORTOMATRIX_CLEANUP;
    630631        }
    631632
Note: See TracChangeset for help on using the changeset viewer.