From fa61e0b9ac131f97f69d30bdde95fdfe6fcdf464 Mon Sep 17 00:00:00 2001 From: Francesco Lannutti Date: Sun, 10 Jul 2016 19:51:40 +0200 Subject: [PATCH] Fixed the two routines for SPARSE (thx to Marcel Hendrix) --- src/maths/sparse/spsmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maths/sparse/spsmp.c b/src/maths/sparse/spsmp.c index a0d806345..edc14ae8a 100644 --- a/src/maths/sparse/spsmp.c +++ b/src/maths/sparse/spsmp.c @@ -562,7 +562,7 @@ SMPzeroRow(SMPmatrix *eMatrix, int Row) void SMPconstMult(SMPmatrix *Matrix, double constant) { - spConstMult(Matrix, constant); + spConstMult(Matrix->SPmatrix, constant); } /* @@ -571,5 +571,5 @@ SMPconstMult(SMPmatrix *Matrix, double constant) void SMPmultiply(SMPmatrix *Matrix, double *RHS, double *Solution, double *iRHS, double *iSolution) { - spMultiply(Matrix, RHS, Solution, iRHS, iSolution); + spMultiply(Matrix->SPmatrix, RHS, Solution, iRHS, iSolution); }