Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Luc Berger-Vergiat <[email protected]>
  • Loading branch information
lucbv committed Feb 21, 2025
1 parent 2af5754 commit 6de1bb4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions batched/dense/unit_test/Test_Batched_SerialSVD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,14 +540,14 @@ void testSpecialCases() {
}

template <class Matrix, class Vector>
struct testSymEigen2x2{
struct testSymEigen2x2 {
using Scalar = typename Matrix::non_const_value_type;

Matrix A;
Vector evs;
Scalar e1, e2;

testSymEigen2x2(Matrix A_, Vector evs_) : A(A_), evs(evs_) { }
testSymEigen2x2(Matrix A_, Vector evs_) : A(A_), evs(evs_) {}

KOKKOS_INLINE_FUNCTION void operator()(int) const {
KokkosBatched::SerialSVDInternal::symEigen2x2(A(0, 0), A(1, 0), A(1, 1), evs(0), evs(1));
Expand All @@ -565,10 +565,10 @@ void testTwoByTwoInternal() {
Matrix A("A", n, n);
Vector evs("eigen values", n);
typename Matrix::HostMirror Ahost = Kokkos::create_mirror_view(A);
Ahost(0, 0) = 0.00062500000000000012;
Ahost(0, 1) = 6.7220534694101152e-19;
Ahost(1, 0) = Ahost(0, 1);
Ahost(1, 1) = 0.00062499999999999763;
Ahost(0, 0) = 0.00062500000000000012;
Ahost(0, 1) = 6.7220534694101152e-19;
Ahost(1, 0) = Ahost(0, 1);
Ahost(1, 1) = 0.00062499999999999763;
Kokkos::deep_copy(A, Ahost);

testSymEigen2x2<Matrix, Vector> tester(A, evs);
Expand Down

0 comments on commit 6de1bb4

Please sign in to comment.