PACMAN 0.1.0
Portable Algorithms for Coupling, Mapping, and Adaptive iNterpolation
Loading...
Searching...
No Matches
serial_ops.hpp File Reference
#include <KokkosBlas2_gemv.hpp>
#include <Kokkos_Core.hpp>
#include "common/concepts.hpp"
#include "common/types.hpp"
#include "solver/utils/serial_solve.hpp"

Go to the source code of this file.

Namespaces

namespace  PACMAN
 
namespace  PACMAN::RbfPum
 

Functions

template<KokkosViewRank< 1 > SourceType, KokkosViewRank< 1 > OffsType, KokkosArray AxisType, int_t dim = AxisType::size()>
KOKKOS_INLINE_FUNCTION int_t PACMAN::RbfPum::SerialDeactivateOneAxis (const SourceType &src, const OffsType &offs, AxisType &activeAxis)
 Deactivate one axis, the one with the smallest range of values and returns the index of this deactivated axis.
 
template<KokkosViewRank< 2 > PViewType, KokkosViewRank< 1 > XViewType, KokkosViewRank< 1 > OffsViewType, KokkosArray AxisType, int_t dim = AxisType::size()>
KOKKOS_FUNCTION void PACMAN::RbfPum::SerialFillPoly (PViewType &P, const XViewType &X, const OffsViewType &XOffs, AxisType &activeAxis)
 Fill the polynomial augmentation matrix accordingly to the activated axis in activeAxis
 
template<KokkosViewRank< 2 > QViewType, KokkosViewRank< 1 > XViewType, KokkosViewRank< 1 > XOffsType, KokkosViewRank< 1 > WViewType, KokkosArray AxisType, int_t dim = AxisType::size()>
KOKKOS_FORCEINLINE_FUNCTION int_t PACMAN::RbfPum::SerialFillQ (QViewType &Q, const XViewType &X, const XOffsType &XOffs, WViewType &W, AxisType &activeAxis)
 Fill the polynomial augmentation matrix Q and sets activeAxis accordingly to the deactivated axis in SerialDeactivateOneAxis
 
template<KokkosViewRank< 2 > AViewType, KokkosViewRank< 1 > BViewType, KokkosViewRank< 1 > OutViewType>
KOKKOS_FORCEINLINE_FUNCTION void PACMAN::RbfPum::SerialMulMatVec (const AViewType &A, const BViewType &B, OutViewType &out)
 Perform: out = Ab.
 
template<KokkosViewRank< 1 > UViewType, KokkosViewRank< 1 > VViewType>
KOKKOS_FORCEINLINE_FUNCTION void PACMAN::RbfPum::SerialVecVecAdd (UViewType &U, const VViewType &V)
 Perform an inplace addition of 2 vectors such as U = U + V.
 
template<KokkosViewRank< 1 > UViewType, KokkosViewRank< 1 > VViewType>
KOKKOS_FORCEINLINE_FUNCTION void PACMAN::RbfPum::SerialVecVecSub (UViewType &U, const VViewType &V)
 Perform an inplace difference of 2 vectors such as U = U - V.