-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix symmetric_matrix_rank_k_update, hermitian_matrix_rank_k_update, a…
…nd symmetric_matrix_rank_1_update (#263) * Fix tests build for submdspan Header and namespace seem to have changed since last time. * Add Issue #261 regression test; it fails to build * Fix #261 Constrain symmetric_matrix_rank_k_update ExecutionPolicy overloads so that the compiler can distinguish them from alpha overloads. * Fix symmetric_matrix_rank_k_update algorithm Algorithm was giving incorrect results. This commit fixes that and improves the associated regression test. * Fix hermitian_matrix_rank_k_update ambiguous overloads Add a regression test that didn't build before this change, and now builds correctly. * Fix hermitian_matrix_rank_k_update 1. Fix ambiguous overload for the no-scalar case 2. Fix the algorithm (so it gives the right answer, for both the scalar and no-scalar cases) * Refactor hermitian_matrix_rank_k_update test * Fix symmetric_matrix_rank_k_update 1. Fix ambiguous overload for the no-scalar case 2. Fix the algorithm (so it gives the right answer for the no-scalar case; the with-scalar case was already fixed in a previous commit) * Add trait for custom execution policies Add a new trait for testing whether an ExecutionPolicy is a valid execution policy (either std::is_execution_policy_v or custom). Use it in symmetric_matrix_rank_k_update and hermitian_matrix_rank_k_update. * Fix symmetric_matrix_rank_1_update ambiguous overloads The reference implementation needs to implement all constraints of symmetric_matrix_rank_1_update in order to disambiguate overloads. Add a regression test as well. * Respond to review feedback
- Loading branch information
Showing
10 changed files
with
834 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.