Browse Source

sparse/*.c, unify, use local copy `Matrix' instead of `eMatrix'

pre-master-46
rlar 13 years ago
parent
commit
b02d34280c
  1. 4
      src/maths/sparse/spfactor.c
  2. 2
      src/maths/sparse/sputils.c

4
src/maths/sparse/spfactor.c

@ -333,10 +333,10 @@ spFactor(MatrixPtr eMatrix)
assert( IS_VALID(Matrix) && !Matrix->Factored);
if (Matrix->NeedsOrdering) {
return spOrderAndFactor( eMatrix, NULL,
return spOrderAndFactor( Matrix, NULL,
0.0, 0.0, DIAG_PIVOTING_AS_DEFAULT );
}
if (!Matrix->Partitioned) spPartition( eMatrix, spDEFAULT_PARTITION );
if (!Matrix->Partitioned) spPartition( Matrix, spDEFAULT_PARTITION );
if (Matrix->Complex)
return FactorComplexMatrix( Matrix );

2
src/maths/sparse/sputils.c

@ -2087,7 +2087,7 @@ spRoundoff(MatrixPtr eMatrix, RealNumber Rho)
assert( IS_SPARSE(Matrix) && IS_FACTORED(Matrix) );
/* Compute Barlow's bound if it is not given. */
if (Rho < 0.0) Rho = spLargestElement( eMatrix );
if (Rho < 0.0) Rho = spLargestElement( Matrix );
/* Find the maximum number of off-diagonals in L if not previously computed. */
if (Matrix->MaxRowCountInLowerTri < 0)

Loading…
Cancel
Save