sparse/*.c, unify, use local copy `Matrix' instead of `eMatrix'
This commit is contained in:
parent
8cd5a15343
commit
4382d81dc4
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue