diff --git a/test/sparse_solver.h b/test/sparse_solver.h index 1d3d25b53..64f6ac4fe 100644 --- a/test/sparse_solver.h +++ b/test/sparse_solver.h @@ -272,6 +272,7 @@ template void check_sparse_spd_solving(Solver& solver, int maxS DenseVector b = it.rhs(); DenseVector refX = it.refX(); PermutationMatrix pnull; + halfA.resize(A.rows(), A.cols()); if(Solver::UpLo == (Lower|Upper)) halfA = A; else