Changeset 4144 for trunk/psLib/src/dataManip/psMatrix.c
- Timestamp:
- Jun 7, 2005, 4:38:02 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psMatrix.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMatrix.c
r4029 r4144 21 21 * @author Robert DeSonia, MHPCC 22 22 * 23 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $24 * @date $Date: 2005-0 5-25 20:26:55$23 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 24 * @date $Date: 2005-06-08 02:38:02 $ 25 25 * 26 26 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 195 195 outImage = psImageRecycle(outImage, inImage->numCols, inImage->numRows, inImage->type.type); 196 196 197 PS_CHECK_SQUARE(inImage, psMatrixLUD_EXIT); 197 PS_CHECK_SQUARE(inImage, psMatrixLUD_EXIT); // gsl_linalg_LU_decomp would fail on non-square input. 198 198 PS_CHECK_SQUARE(outImage, psMatrixLUD_EXIT); 199 199 … … 223 223 224 224 // Calculate LU decomposition 225 gsl_linalg_LU_decomp(lu, &perm, &signum); 225 gsl_linalg_LU_decomp(lu, &perm, &signum); // N.B., uses Gaussian Elimination with partial pivoting. 226 226 227 227 // Copy GSL matrix data to psImage data … … 412 412 // Perform multiplication 413 413 gsl_linalg_matmult(m1, m2, m3); 414 // N.B., gsl_blas_sgemm/dgemm could have been used instead, e.g., 415 // gsl_blas_dgemm(CblasNoTrans, CblasNoTrans, 1.0, m1, m2, m3) 414 416 415 417 // Copy GSL matrix data to psImage data
Note:
See TracChangeset
for help on using the changeset viewer.
