SumPlus< Scalar, SavedScalar, Space > Struct Template Reference#

DiFfRG: DiFfRG::SumPlus< Scalar, SavedScalar, Space > Struct Template Reference
DiFfRG
Discretization Framework for functional Renormalization Group flows
DiFfRG::SumPlus< Scalar, SavedScalar, Space > Struct Template Reference

An extension of the Kokkos::Sum reducer that adds a constant value to the result. More...

#include <kokkos.hh>

Public Types

using reducer = SumPlus< Scalar, SavedScalar, Space >
 
using value_type = std::remove_cv_t< Scalar >
 
using saved_type = std::remove_cv_t< SavedScalar >
 
using result_view_type = Kokkos::View< value_type, Space >
 

Public Member Functions

KOKKOS_INLINE_FUNCTION SumPlus (value_type &value_, const saved_type &plus_value_)
 
KOKKOS_INLINE_FUNCTION SumPlus (const result_view_type &value_, const saved_type &plus_value_)
 
KOKKOS_INLINE_FUNCTION void join (value_type &dest, const value_type &src) const
 
KOKKOS_INLINE_FUNCTION void init (value_type &val) const
 
KOKKOS_INLINE_FUNCTION value_typereference () const
 
KOKKOS_INLINE_FUNCTION result_view_type view () const
 
KOKKOS_INLINE_FUNCTION bool references_scalar () const
 
KOKKOS_INLINE_FUNCTION void final (value_type &update) const
 

Private Attributes

result_view_type value
 
bool references_scalar_v
 
const saved_type plus_value
 

Detailed Description

template<class Scalar, class SavedScalar, class Space>
struct DiFfRG::SumPlus< Scalar, SavedScalar, Space >

An extension of the Kokkos::Sum reducer that adds a constant value to the result.

Template Parameters
Scalarthe type of the scalar value to be summed.
Spaceexecution space for the Kokkos::Sum reducer.

Member Typedef Documentation

◆ reducer

◆ result_view_type

using DiFfRG::SumPlus< Scalar, SavedScalar, Space >::result_view_type = Kokkos::View<value_type, Space>

◆ saved_type

using DiFfRG::SumPlus< Scalar, SavedScalar, Space >::saved_type = std::remove_cv_t<SavedScalar>

◆ value_type

using DiFfRG::SumPlus< Scalar, SavedScalar, Space >::value_type = std::remove_cv_t<Scalar>

Constructor & Destructor Documentation

◆ SumPlus() [1/2]

KOKKOS_INLINE_FUNCTION DiFfRG::SumPlus< Scalar, SavedScalar, Space >::SumPlus ( value_type value_,
const saved_type plus_value_ 
)
inline

◆ SumPlus() [2/2]

Member Function Documentation

◆ final()

◆ init()

◆ join()

◆ reference()

◆ references_scalar()

KOKKOS_INLINE_FUNCTION bool DiFfRG::SumPlus< Scalar, SavedScalar, Space >::references_scalar ( ) const
inline

◆ view()

Member Data Documentation

◆ plus_value

◆ references_scalar_v

bool DiFfRG::SumPlus< Scalar, SavedScalar, Space >::references_scalar_v
private

◆ value


The documentation for this struct was generated from the following file:
  • /__w/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/kokkos.hh