libMesh
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
libMesh::Kokkos::detail::scale_value< Scalar > Struct Template Reference

#include <kokkos_vector_ops.h>

Public Member Functions

LIBMESH_DEVICE_INLINE auto operator() (const Scalar &value) const -> decltype(value *alpha)
 
template<typename ValueType >
LIBMESH_DEVICE_INLINE auto operator() (const ValueType &value) const -> decltype(value *alpha)
 

Public Attributes

const Scalar & alpha
 

Detailed Description

template<typename Scalar>
struct libMesh::Kokkos::detail::scale_value< Scalar >

Definition at line 173 of file kokkos_vector_ops.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename Scalar >
LIBMESH_DEVICE_INLINE auto libMesh::Kokkos::detail::scale_value< Scalar >::operator() ( const Scalar &  value) const -> decltype(value * alpha)
inline

Definition at line 178 of file kokkos_vector_ops.h.

179 {
180 return value * alpha;
181 }
static const bool value
Definition xdr_io.C:55

References libMesh::Kokkos::detail::scale_value< Scalar >::alpha, and value.

◆ operator()() [2/2]

template<typename Scalar >
template<typename ValueType >
LIBMESH_DEVICE_INLINE auto libMesh::Kokkos::detail::scale_value< Scalar >::operator() ( const ValueType &  value) const -> decltype(value * alpha)
inline

Definition at line 185 of file kokkos_vector_ops.h.

186 {
187 return value * alpha;
188 }

References libMesh::Kokkos::detail::scale_value< Scalar >::alpha, and value.

Member Data Documentation

◆ alpha

template<typename Scalar >
const Scalar& libMesh::Kokkos::detail::scale_value< Scalar >::alpha

The documentation for this struct was generated from the following file: