The Kokkos wrapper class that can hold the reference of an arithmetic scalar variable. More...
#include <KokkosScalar.h>
Public Member Functions | |
| Scalar (T &value) | |
| Constructor. More... | |
| auto & | operator= (T value) |
| Assign a scalar value to the underlying host reference. More... | |
| KOKKOS_FUNCTION | operator const T & () const |
| Get the const reference of the stored variable. More... | |
| operator const T & () const | |
| Get the const reference of the stored host reference. More... | |
| KOKKOS_FUNCTION const T & | operator* () const |
| Get the const reference of the stored variable. More... | |
| const T & | operator* () const |
| Get the const reference of the stored host reference. More... | |
| T & | operator* () |
| Get the writeable reference of the stored host reference. More... | |
| KOKKOS_FUNCTION const T * | operator-> () const |
| Get the const pointer to the stored variable. More... | |
| const T * | operator-> () const |
| Get the const pointer of the stored host reference. More... | |
| T * | operator-> () |
| Get the writeable pointer of the stored host reference. More... | |
| template<typename... Args> | |
| KOKKOS_FUNCTION auto | operator() (Args &&... args) const -> decltype(auto) |
| Forward arguments to the stored variable's const operator() depending on the architecture this function is being called on. More... | |
| template<typename... Args> | |
| auto | operator() (Args &&... args) const -> decltype(auto) |
| Forward arguments to the stored host reference's const operator() More... | |
| template<typename... Args> | |
| auto | operator() (Args &&... args) -> decltype(auto) |
| Forward arguments to the stored host reference's operator() More... | |
| operator T& () | |
| Get the writeable reference of the stored host reference. More... | |
Protected Attributes | |
| T & | _reference |
| Writeable host reference of the variable. More... | |
| const T | _copy |
| Device copy of the variable. More... | |
The Kokkos wrapper class that can hold the reference of an arithmetic scalar variable.
Definition at line 24 of file KokkosScalar.h.
|
inline |
Constructor.
| value | The writeable reference of the arithmetic scalar variable to store |
Definition at line 31 of file KokkosScalar.h.
|
inlineinherited |
Get the const reference of the stored variable.
Definition at line 57 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Get the const reference of the stored host reference.
Definition at line 102 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Get the writeable reference of the stored host reference.
Definition at line 127 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Forward arguments to the stored variable's const operator() depending on the architecture this function is being called on.
| args | The variadic arguments to be forwarded |
Definition at line 91 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Forward arguments to the stored host reference's const operator()
| args | The variadic arguments to be forwarded |
Definition at line 118 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Forward arguments to the stored host reference's operator()
| args | The variadic arguments to be forwarded |
Definition at line 143 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Get the const reference of the stored variable.
Definition at line 68 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Get the const reference of the stored host reference.
Definition at line 107 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Get the writeable reference of the stored host reference.
Definition at line 132 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Get the const pointer to the stored variable.
Definition at line 79 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Get the const pointer of the stored host reference.
Definition at line 112 of file KokkosReferenceWrapper.h.
|
inlineinherited |
Get the writeable pointer of the stored host reference.
Definition at line 137 of file KokkosReferenceWrapper.h.
|
inline |
Assign a scalar value to the underlying host reference.
| value | The scalar value to be assigned |
Definition at line 37 of file KokkosScalar.h.
|
protectedinherited |
Device copy of the variable.
Definition at line 156 of file KokkosReferenceWrapper.h.
Referenced by Moose::Kokkos::ReferenceWrapper< T >::operator const T &(), Moose::Kokkos::ReferenceWrapper< Real >::operator()(), Moose::Kokkos::ReferenceWrapper< Real >::operator*(), and Moose::Kokkos::ReferenceWrapper< Real >::operator->().
|
protectedinherited |
Writeable host reference of the variable.
Definition at line 152 of file KokkosReferenceWrapper.h.
Referenced by Moose::Kokkos::ReferenceWrapper< T >::operator const T &(), Moose::Kokkos::ReferenceWrapper< T >::operator T&(), Moose::Kokkos::ReferenceWrapper< Real >::operator()(), Moose::Kokkos::ReferenceWrapper< Real >::operator*(), Moose::Kokkos::ReferenceWrapper< Real >::operator->(), and Moose::Kokkos::Scalar< Real >::operator=().
1.8.14