Browse Source

Fixed the two routines for SPARSE (thx to Marcel Hendrix)

pre-master-46
Francesco Lannutti 10 years ago
committed by Holger Vogt
parent
commit
330de64b19
  1. 4
      src/maths/sparse/spsmp.c

4
src/maths/sparse/spsmp.c

@ -568,7 +568,7 @@ SMPzeroRow(SMPmatrix *eMatrix, int Row)
void void
SMPconstMult(SMPmatrix *Matrix, double constant) SMPconstMult(SMPmatrix *Matrix, double constant)
{ {
spConstMult(Matrix, constant);
spConstMult(Matrix->SPmatrix, constant);
} }
/* /*
@ -577,5 +577,5 @@ SMPconstMult(SMPmatrix *Matrix, double constant)
void void
SMPmultiply(SMPmatrix *Matrix, double *RHS, double *Solution, double *iRHS, double *iSolution) SMPmultiply(SMPmatrix *Matrix, double *RHS, double *Solution, double *iRHS, double *iSolution)
{ {
spMultiply(Matrix, RHS, Solution, iRHS, iSolution);
spMultiply(Matrix->SPmatrix, RHS, Solution, iRHS, iSolution);
} }
Loading…
Cancel
Save