Skip to content

Commit

Permalink
Simplifying correctness test for diag
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamanjeendgar committed Nov 5, 2024
1 parent 6ade616 commit 09ea44d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/test_matmul_cores/test_trig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,8 @@ class TestLMIGET : public::testing::Test
RandBLAS::apply_diagonal_rademacher(left, layout, m, n, A_vec.data(), buff.data());

T norm_diag = 0.0;
if(layout == blas::Layout::RowMajor) {
blas::axpy(m * n, 1.0, A_vec.data(), 1, B_vec.data(), 1);
norm_diag = blas::nrm2(m * n, B_vec.data(), 1);
}
else {
blas::axpy(m * n, 1.0, A_vec.data(), 1, B_vec.data(), 1);
norm_diag = blas::nrm2(m * n, B_vec.data(), 1);
}
blas::axpy(m * n, 1.0, A_vec.data(), 1, B_vec.data(), 1);
norm_diag = blas::nrm2(m * n, B_vec.data(), 1);

randblas_require(norm_diag < tol);

Expand Down

0 comments on commit 09ea44d

Please sign in to comment.