HeAP: Fix regression

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2019-02-19 22:00:01 +00:00 committed by David Shah
parent 8e4e03d980
commit 589b267a93

View File

@ -38,6 +38,8 @@ void taucif_finalise_matrix(struct taucif_system *sys) {
}
int taucif_solve_system(struct taucif_system *sys, double *x, double *rhs) {
if (sys->mat->n <= 2)
return 0;
// FIXME: preconditioner, droptol??
taucs_ccs_matrix* precond_mat = taucs_ccs_factor_llt(sys->mat, 1e-2, 0);
if (precond_mat == NULL)