Skip to content
Snippets Groups Projects
Commit 2820a31d authored by Max Kahnt's avatar Max Kahnt
Browse files

Avoid changing the result in ignored nodes.

parent dc23e160
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ namespace MatrixVector {
static void lowerTriangularSolve(Matrix const& L, Vector b, Vector& x,
BitVector const* ignore,
bool transpose = false) {
x = 0;
if (transpose) {
for (auto it = L.begin(); it != L.end(); ++it) {
const size_t i = it.index();
......@@ -55,7 +54,6 @@ namespace MatrixVector {
static void upperTriangularSolve(Matrix const& U, Vector b, Vector& x,
BitVector const* ignore,
bool transpose = false) {
x = 0;
if (transpose) {
for (auto it = U.beforeEnd(); it != U.beforeBegin(); --it) {
const size_t i = it.index();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment