Skip to content

Commit

Permalink
Merge pull request #1678 from ginkgo-project/gmres-fix-conj
Browse files Browse the repository at this point in the history
Fix complex conjugate in MGS dot product.

Related PR: #1678
  • Loading branch information
nbeams committed Sep 12, 2024
2 parents 6db98d6 + aa09fbd commit b5745ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/solver/gmres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ void orthogonalize_mgs(matrix::Dense<ValueType>* hessenberg_iter,
krylov_bases, dim<2>{num_rows, num_rhs},
span{local_num_rows * i, local_num_rows * (i + 1)},
span{0, num_rhs});
next_krylov->compute_conj_dot(krylov_basis, hessenberg_entry,
reduction_tmp);
krylov_basis->compute_conj_dot(next_krylov, hessenberg_entry,
reduction_tmp);
next_krylov->sub_scaled(hessenberg_entry, krylov_basis);
}
}
Expand Down

0 comments on commit b5745ac

Please sign in to comment.