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

Fix initialisation

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