8#include <Kokkos_Core.hpp>
29template <KokkosViewRank<1> AsViewType, KokkosViewRank<1> OffsViewType>
30KOKKOS_FORCEINLINE_FUNCTION
auto
33 using DataType =
typename AsViewType::non_const_value_type;
34 using MemorySpace =
typename AsViewType::memory_space;
37 return Kokkos::View<
DataType **, MemorySpace,
38 Kokkos::MemoryTraits<Kokkos::Unmanaged>>(
A_data.data(),
n,
56template <KokkosViewRank<1> PsViewType, KokkosViewRank<1> OffsViewType,
61 using DataType =
typename PsViewType::non_const_value_type;
62 using MemorySpace =
typename PsViewType::memory_space;
74 return Kokkos::View<
DataType **, MemorySpace,
75 Kokkos::MemoryTraits<Kokkos::Unmanaged>>(
P_data.data(),
n,
90template <KokkosViewRank<1> BsViewType, KokkosViewRank<1> OffsViewType>
94 using DataType =
typename BsViewType::non_const_value_type;
95 using MemorySpace =
typename BsViewType::memory_space;
98 return Kokkos::View<
DataType *, MemorySpace,
99 Kokkos::MemoryTraits<Kokkos::Unmanaged>>(
B_data.data(),
KOKKOS_FORCEINLINE_FUNCTION auto GetPolyMatrix(const index_t &k, const PsViewType &Ps, const OffsViewType &offs, const int_t &n, const AxisType &activeAxis)
Returns a matrix of rank 2, shaped as (n, m), using the given data view, team rank,...
KOKKOS_FORCEINLINE_FUNCTION auto GetRbfVector(const index_t &k, const BsViewType &Bs, const OffsViewType &offs, const int_t &n)
Returns a vector view of rank 1, of length n, using the given data view, team rank,...
KOKKOS_FORCEINLINE_FUNCTION auto GetRbfMatrix(const index_t &k, const AsViewType &As, const OffsViewType &offs, const int_t &n, const int_t &m)
Returns a matrix of rank 2, shaped as (n, m), using the given data view, team rank,...