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

Componentwise transform functors, shared by the vector helpers here and the tensor helpers in kokkos_tensor_ops.h. More...

#include <kokkos_vector_ops.h>

Public Member Functions

LIBMESH_DEVICE_INLINE auto operator() (const ValueType &value) const
 

Detailed Description

template<typename ValueType>
struct libMesh::Kokkos::detail::negate_value< ValueType >

Componentwise transform functors, shared by the vector helpers here and the tensor helpers in kokkos_tensor_ops.h.

scale_value and divide_value hold their scalar by reference, so they must not outlive it; both headers only ever build and consume them within a single expression.

Definition at line 163 of file kokkos_vector_ops.h.

Member Function Documentation

◆ operator()()

template<typename ValueType >
LIBMESH_DEVICE_INLINE auto libMesh::Kokkos::detail::negate_value< ValueType >::operator() ( const ValueType &  value) const
inline

Definition at line 166 of file kokkos_vector_ops.h.

167 {
168 return -value;
169 }
static const bool value
Definition xdr_io.C:55

References value.


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