Changeset 2204 for trunk/psLib/src/dataManip/psMatrix.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psMatrix.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMatrix.c
r2021 r2204 20 20 * @author Ross Harman, MHPCC 21 21 * 22 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $23 * @date $Date: 2004-10- 08 02:48:01 $22 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2004-10-27 00:57:31 $ 24 24 * 25 25 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 119 119 psImage* psMatrixLUD(psImage* outImage, psVector* outPerm, psImage* inImage) 120 120 { 121 intsignum = 0;122 intarraySize = 0;123 intnumRows = 0;124 intnumCols = 0;121 psS32 signum = 0; 122 psS32 arraySize = 0; 123 psS32 numRows = 0; 124 psS32 numCols = 0; 125 125 gsl_matrix lu; 126 126 gsl_permutation perm; … … 165 165 const psVector* inVector, const psVector* inPerm) 166 166 { 167 intarraySize = 0;168 intnumRows = 0;169 intnumCols = 0;167 psS32 arraySize = 0; 168 psS32 numRows = 0; 169 psS32 numCols = 0; 170 170 gsl_matrix lu; 171 171 gsl_permutation perm; … … 217 217 psImage* psMatrixInvert(psImage* outImage, const psImage* inImage, float *restrict det) 218 218 { 219 intsignum = 0;220 intarraySize = 0;221 intnumRows = 0;222 intnumCols = 0;219 psS32 signum = 0; 220 psS32 arraySize = 0; 221 psS32 numRows = 0; 222 psS32 numCols = 0; 223 223 gsl_matrix inv; 224 224 gsl_matrix *lu; … … 271 271 float *psMatrixDeterminant(const psImage* restrict inImage) 272 272 { 273 intsignum = 0;274 intarraySize = 0;275 intnumRows = 0;276 intnumCols = 0;273 psS32 signum = 0; 274 psS32 arraySize = 0; 275 psS32 numRows = 0; 276 psS32 numCols = 0; 277 277 float *det = NULL; 278 278 gsl_matrix *lu = NULL; … … 313 313 psImage* psMatrixMultiply(psImage* outImage, psImage* inImage1, psImage* inImage2) 314 314 { 315 intarraySize = 0;316 intnumRows = 0;317 intnumCols = 0;315 psS32 arraySize = 0; 316 psS32 numRows = 0; 317 psS32 numCols = 0; 318 318 gsl_matrix m1; 319 319 gsl_matrix m2; … … 355 355 psImage* psMatrixTranspose(psImage* outImage, const psImage* inImage) 356 356 { 357 intarraySize = 0;358 intnumRows = 0;359 intnumCols = 0;357 psS32 arraySize = 0; 358 psS32 numRows = 0; 359 psS32 numCols = 0; 360 360 gsl_matrix trans; 361 361 … … 392 392 psImage* psMatrixEigenvectors(psImage* outImage, psImage* inImage) 393 393 { 394 intnumRows = 0;395 intnumCols = 0;394 psS32 numRows = 0; 395 psS32 numCols = 0; 396 396 gsl_vector *eVals = NULL; 397 397 gsl_eigen_symmv_workspace *w = NULL; … … 436 436 psVector* psMatrixToVector(psVector* outVector, const psImage* inImage) 437 437 { 438 intsize = 0;438 psS32 size = 0; 439 439 440 440 // Error checks … … 495 495 psImage* psVectorToMatrix(psImage* outImage, const psVector* inVector) 496 496 { 497 intsize = 0;497 psS32 size = 0; 498 498 499 499 // Error checks
Note:
See TracChangeset
for help on using the changeset viewer.
