Skip to content

Commit

Permalink
use z for imaginary unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Oct 24, 2024
1 parent 5d21e78 commit 72cfb60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fft/unit_test/Test_Transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ void test_fft1_identity_inplace(T atol = 1.0e-12) {
inv_ar_hat(reinterpret_cast<T*>(ar_hat.data()), i);
RealView1DType ar_ref("ar_ref", i);

const Kokkos::complex<T> I(1.0, 1.0);
const Kokkos::complex<T> z(1.0, 1.0);
Kokkos::Random_XorShift64_Pool<> random_pool(/*seed=*/12345);
Kokkos::fill_random(a, random_pool, I);
Kokkos::fill_random(a, random_pool, z);
Kokkos::fill_random(ar, random_pool, 1.0);

Kokkos::deep_copy(a_ref, a);
Expand Down

0 comments on commit 72cfb60

Please sign in to comment.