11 #include <isce3/core/forward.h>
12 #include <isce3/core/Common.h>
20 CUDA_HOSTDEV gpuLUT1d() =
delete;
26 CUDA_HOSTDEV gpuLUT1d(gpuLUT1d<T> &);
29 CUDA_HOSTDEV gpuLUT1d &
operator=(gpuLUT1d<T> &);
35 CUDA_HOSTDEV
inline double *
coords() {
return _coords; }
38 CUDA_HOSTDEV
inline const double *
coords()
const {
return _coords; }
41 CUDA_HOSTDEV
inline void coords(
double * c) { _coords = c; }
44 CUDA_HOSTDEV
inline T *
values() {
return _values; }
47 CUDA_HOSTDEV
inline const T *
values()
const {
return _values; }
50 CUDA_HOSTDEV
inline void values(T * v) { _values = v; }
53 CUDA_HOSTDEV
inline bool extrapolate()
const {
return _extrapolate; }
56 CUDA_HOSTDEV
inline void extrapolate(
bool flag) { _extrapolate = flag; }
59 CUDA_HOSTDEV
inline bool haveData()
const {
return _haveData; }
62 CUDA_HOSTDEV
inline T
refValue()
const {
return _refValue; }
65 CUDA_HOSTDEV
inline size_t size()
const {
return _size; }
68 CUDA_HOSTDEV
inline void size(
size_t s) { _size = s; }
71 CUDA_DEV T
eval(
double x)
const;
74 CUDA_HOST T
eval_h(
double x);
CUDA_HOSTDEV bool haveData() const
Get flag for having data.
Definition: gpuLUT1d.h:59
CUDA_HOSTDEV const double * coords() const
Read-only access to coordinates.
Definition: gpuLUT1d.h:38
CUDA_HOSTDEV const T * values() const
Read-only access to values.
Definition: gpuLUT1d.h:47
CUDA_DEV T eval(double x) const
Evaluate the LUT.
Data structure to hold a 1D Lookup table.
Definition: forward.h:29
CUDA_HOSTDEV T refValue() const
Get reference value.
Definition: gpuLUT1d.h:62
CUDA_HOSTDEV void values(T *v)
Set the values.
Definition: gpuLUT1d.h:50
CUDA_HOSTDEV bool extrapolate() const
Get extrapolate flag.
Definition: gpuLUT1d.h:53
CUDA_HOSTDEV double * coords()
Access to coordinates.
Definition: gpuLUT1d.h:35
CUDA_HOSTDEV gpuLUT1d & operator=(gpuLUT1d< T > &)
Shallow assignment operator on device.
CUDA_HOSTDEV void size(size_t s)
Set size info of LUT.
Definition: gpuLUT1d.h:68
CUDA_HOSTDEV size_t size() const
Get size info of LUT.
Definition: gpuLUT1d.h:65
CUDA_HOSTDEV void coords(double *c)
Set the coordinates.
Definition: gpuLUT1d.h:41
CUDA_HOSTDEV void extrapolate(bool flag)
Set extrapolation flag.
Definition: gpuLUT1d.h:56
CUDA_HOSTDEV T * values()
Access to values.
Definition: gpuLUT1d.h:44
CUDA_HOST T eval_h(double x)
Evaluate the LUT from host (test function)