Changeset 9538 for trunk/psLib/src/math/psMatrix.c
- Timestamp:
- Oct 13, 2006, 11:13:48 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMatrix.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMatrix.c
r8627 r9538 21 21 * @author Robert DeSonia, MHPCC 22 22 * 23 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $24 * @date $Date: 2006- 08-26 04:34:28 $23 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 24 * @date $Date: 2006-10-13 21:13:48 $ 25 25 * 26 26 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 308 308 // This is a temporary gauss-jordan solver based on gene's 309 309 // version based on the Numerical Recipes version 310 bool psMatrixGJSolve( 311 psImage *a, 312 psVector *b) 313 { 310 bool psMatrixGJSolve(psImage *a, 311 psVector *b 312 ) 313 { 314 PS_ASSERT_IMAGE_NON_NULL(a, false); 315 PS_ASSERT_VECTOR_NON_NULL(b, false); 316 PS_ASSERT_IMAGE_TYPE(a, PS_TYPE_F64, false); 317 PS_ASSERT_VECTOR_TYPE(b, PS_TYPE_F64, false); 318 PS_ASSERT_INT_EQUAL(a->numCols, a->numRows, false); 319 int Nx = a->numCols; 320 PS_ASSERT_VECTOR_SIZE(b, (long int)Nx, false); 321 314 322 psF64 *vector = b->data.F64; 315 323 psF64 **matrix = a->data.F64; 316 int Nx = a->numCols;317 324 int *indxc = psAlloc(Nx*sizeof(int)); 318 325 int *indxr = psAlloc(Nx*sizeof(int));
Note:
See TracChangeset
for help on using the changeset viewer.
