Skip to content

Commit

Permalink
fix: transposed trs uses the same alg
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Jul 5, 2024
1 parent b35defb commit fd48e36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/solver/lower_trs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ std::unique_ptr<LinOp> LowerTrs<ValueType, IndexType>::transpose() const
{
return transposed_type::build()
.with_num_rhs(this->parameters_.num_rhs)
.with_algorithm(this->parameters_.algorithm)
.on(this->get_executor())
->generate(share(this->get_system_matrix()->transpose()));
}
Expand All @@ -109,6 +110,7 @@ std::unique_ptr<LinOp> LowerTrs<ValueType, IndexType>::conj_transpose() const
{
return transposed_type::build()
.with_num_rhs(this->parameters_.num_rhs)
.with_algorithm(this->parameters_.algorithm)
.on(this->get_executor())
->generate(share(this->get_system_matrix()->conj_transpose()));
}
Expand Down
2 changes: 2 additions & 0 deletions core/solver/upper_trs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ std::unique_ptr<LinOp> UpperTrs<ValueType, IndexType>::transpose() const
{
return transposed_type::build()
.with_num_rhs(this->parameters_.num_rhs)
.with_algorithm(this->parameters_.algorithm)
.on(this->get_executor())
->generate(share(this->get_system_matrix()->transpose()));
}
Expand All @@ -109,6 +110,7 @@ std::unique_ptr<LinOp> UpperTrs<ValueType, IndexType>::conj_transpose() const
{
return transposed_type::build()
.with_num_rhs(this->parameters_.num_rhs)
.with_algorithm(this->parameters_.algorithm)
.on(this->get_executor())
->generate(share(this->get_system_matrix()->conj_transpose()));
}
Expand Down

0 comments on commit fd48e36

Please sign in to comment.