Skip to content

Commit

Permalink
3745: Fix triXsolve arguments in code-generation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmmsartor committed Jul 3, 2024
1 parent 72764dc commit 347baf6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions casadi/core/solve_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ namespace casadi {
}
// Perform sparse matrix multiplication
g << g.triusolve(this->dep(1).sparsity(), g.work(arg[1], this->dep(1).nnz()),
g.work(arg[1], this->dep(1).nnz()), Tr, false, nrhs) << '\n';
g.work(res[0], this->nnz()), Tr, false, nrhs) << '\n';
}

template<bool Tr>
Expand All @@ -446,7 +446,7 @@ namespace casadi {
}
// Perform sparse matrix multiplication
g << g.trilsolve(this->dep(1).sparsity(), g.work(arg[1], this->dep(1).nnz()),
g.work(arg[1], this->dep(1).nnz()), Tr, false, nrhs) << '\n';
g.work(res[0], this->nnz()), Tr, false, nrhs) << '\n';
}

template<bool Tr>
Expand All @@ -460,7 +460,7 @@ namespace casadi {
}
// Perform sparse matrix multiplication
g << g.triusolve(this->dep(1).sparsity(), g.work(arg[1], this->dep(1).nnz()),
g.work(arg[1], this->dep(1).nnz()), Tr, true, nrhs) << '\n';
g.work(res[0], this->nnz()), Tr, true, nrhs) << '\n';
}

template<bool Tr>
Expand All @@ -474,7 +474,7 @@ namespace casadi {
}
// Perform sparse matrix multiplication
g << g.trilsolve(this->dep(1).sparsity(), g.work(arg[1], this->dep(1).nnz()),
g.work(arg[1], this->dep(1).nnz()), Tr, true, nrhs) << '\n';
g.work(res[0], this->nnz()), Tr, true, nrhs) << '\n';
}

} // namespace casadi
Expand Down

0 comments on commit 347baf6

Please sign in to comment.