Skip to content
Snippets Groups Projects
Commit ffbd40b1 authored by Elias Pipping's avatar Elias Pipping
Browse files

Fix initialisation

parent 934703a2
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,8 @@ namespace MatrixVector {
static Vector lowerTriangularSolve(Matrix const& L, Vector b,
BitVector const* ignore,
bool transpose = false) {
Vector x = 0;
Vector x = b;
x = 0;
lowerTriangularSolve(L, std::move(b), x, ignore, transpose);
return x;
}
......@@ -120,7 +121,8 @@ namespace MatrixVector {
static Vector upperTriangularSolve(Matrix const& U, Vector b,
BitVector const* ignore,
bool transpose = false) {
Vector x = 0;
Vector x = b;
x = 0;
upperTriangularSolve(U, std::move(b), x, ignore, transpose);
return x;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment