Looking at
[source location omitted]
it seems it is not the case for Kokkos::complex, and constexpr needs to be explicitly added.
Here is a small code to test constexpr-ness:
[implementation suggestion omitted]
This should show (at least for g++ 11.3.0):
[implementation suggestion omitted]
If you agree on the changes, I can open a PR.
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Use the existing build tree for local verification.