/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/coordinates/stack_coordinates.hh Source File#
|
DiFfRG
|
stack_coordinates.hh
Go to the documentation of this file.
17 throw std::invalid_argument("start must be smaller than stop; start = " + std::to_string(start) +
21 template <typename Idx2> IndexStack(const LinearCoordinates1D<Idx2> &other) : IndexStack(other.start, other.stop) {}
55 BosonicMatsubaraValues(Idx start, Idx stop, NT T) : start(start), stop(stop), T(T), m_size(stop - start)
58 throw std::invalid_argument("start must be smaller than stop; start = " + std::to_string(start) +
79 NT KOKKOS_FORCEINLINE_FUNCTION forward(const Idx &x) const { return NT(x + start) * 2. * M_PI * T; }
81 template <typename IT> device::array<NT, 1> KOKKOS_FORCEINLINE_FUNCTION forward(const device::array<IT, 1> &x) const
92 Idx KOKKOS_FORCEINLINE_FUNCTION backward(const NT &y) const { return Idx(std::round(y / (2. * M_PI * T))) - start; }
115 FermionicMatsubaraValues(Idx start, Idx stop, NT T) : start(start), stop(stop), T(T), m_size(stop - start)
118 throw std::invalid_argument("start must be smaller than stop; start = " + std::to_string(start) +
139 NT KOKKOS_FORCEINLINE_FUNCTION forward(const Idx &x) const { return (NT(x + start) + 0.5) * 2. * M_PI * T; }
141 template <typename IT> device::array<NT, 1> KOKKOS_FORCEINLINE_FUNCTION forward(const device::array<IT, 1> &x) const
Definition stack_coordinates.hh:50
device::array< size_t, 1 > KOKKOS_FORCEINLINE_FUNCTION from_linear_index(size_t i) const
Definition stack_coordinates.hh:68
NT KOKKOS_FORCEINLINE_FUNCTION forward(const Idx &x) const
Transform from the grid to the physical space.
Definition stack_coordinates.hh:79
device::array< NT, 1 > KOKKOS_FORCEINLINE_FUNCTION forward(const device::array< IT, 1 > &x) const
Definition stack_coordinates.hh:81
std::string to_string() const
Definition stack_coordinates.hh:99
BosonicMatsubaraValues(const BosonicMatsubaraValues< Idx2, NT2 > &other)
Definition stack_coordinates.hh:63
Idx KOKKOS_FORCEINLINE_FUNCTION backward(const NT &y) const
Transform from the physical space to the grid.
Definition stack_coordinates.hh:92
BosonicMatsubaraValues(Idx start, Idx stop, NT T)
Definition stack_coordinates.hh:55
Definition stack_coordinates.hh:110
NT KOKKOS_FORCEINLINE_FUNCTION forward(const Idx &x) const
Transform from the grid to the physical space.
Definition stack_coordinates.hh:139
FermionicMatsubaraValues(Idx start, Idx stop, NT T)
Definition stack_coordinates.hh:115
Idx KOKKOS_FORCEINLINE_FUNCTION backward(const NT &y) const
Transform from the physical space to the grid.
Definition stack_coordinates.hh:152
std::string to_string() const
Definition stack_coordinates.hh:162
device::array< NT, 1 > KOKKOS_FORCEINLINE_FUNCTION forward(const device::array< IT, 1 > &x) const
Definition stack_coordinates.hh:141
FermionicMatsubaraValues(const FermionicMatsubaraValues< Idx2, NT2 > &other)
Definition stack_coordinates.hh:123
device::array< size_t, 1 > KOKKOS_FORCEINLINE_FUNCTION from_linear_index(size_t i) const
Definition stack_coordinates.hh:128
Definition stack_coordinates.hh:9
Idx KOKKOS_FORCEINLINE_FUNCTION backward(const Idx y) const
Transform from the physical space to the grid.
Definition stack_coordinates.hh:37
Idx KOKKOS_FORCEINLINE_FUNCTION forward(const Idx x) const
Transform from the grid to the physical space.
Definition stack_coordinates.hh:29
IndexStack(const LinearCoordinates1D< Idx2 > &other)
Definition stack_coordinates.hh:21
Definition coordinates.hh:233
Definition complex_math.hh:10
Generated by