mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix superLU when the salver is called multiple times
This commit is contained in:
@@ -81,6 +81,10 @@ template<typename LUSolver> void sparse_lu(LUSolver& lu)
|
||||
DenseVector refX(size), x(size);
|
||||
|
||||
initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag, &zeroCoords, &nonzeroCoords);
|
||||
check_slu(lu, m2, b, refMat2, b);
|
||||
|
||||
refMat2.setZero();
|
||||
m2.setZero();
|
||||
initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag, &zeroCoords, &nonzeroCoords);
|
||||
check_slu(lu, m2, b, refMat2, b);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user