Represents a scalar value that has been passed as a pointer. More...
#include <CudaScalar.hpp>
Public Types | |
using | ValueType = T |
Public Member Functions | |
PtrScalar (const T *data) | |
Public Attributes | |
const T * | data |
The scalar value. More... | |
Represents a scalar value that has been passed as a pointer.
Some APIs require accepting input scalars as pointers which may reside in host or device memory. This object represents such inputs, and can be targeted by PtrScalarSpecialiser
to transparently cope with the pointer being on the host or device (ultimately resolving to an sp::Scalar
).
T | The data type of the scalar. |
Location | Which device the scalar is stored on, if known. |
const T* sp::PtrScalar< T, Location >::data |
The scalar value.