isce3 0.25.0
Loading...
Searching...
No Matches
isce3::cuda::core::gpuLUT1d< T > Class Template Reference

Public Member Functions

CUDA_HOST gpuLUT1d (const isce3::core::LUT1d< T > &)
 Deep copy constructor from CPU LUT1d.
 
CUDA_HOSTDEV gpuLUT1d (gpuLUT1d< T > &)
 Shallow copy constructor on device.
 
CUDA_HOSTDEV gpuLUT1doperator= (gpuLUT1d< T > &)
 Shallow assignment operator on device.
 
 ~gpuLUT1d ()
 Destructor.
 
CUDA_HOSTDEV double * coords ()
 Access to coordinates.
 
CUDA_HOSTDEV const double * coords () const
 Read-only access to coordinates.
 
CUDA_HOSTDEV void coords (double *c)
 Set the coordinates.
 
CUDA_HOSTDEV T * values ()
 Access to values.
 
CUDA_HOSTDEV const T * values () const
 Read-only access to values.
 
CUDA_HOSTDEV void values (T *v)
 Set the values.
 
CUDA_HOSTDEV bool extrapolate () const
 Get extrapolate flag.
 
CUDA_HOSTDEV void extrapolate (bool flag)
 Set extrapolation flag.
 
CUDA_HOSTDEV bool haveData () const
 Get flag for having data.
 
CUDA_HOSTDEV T refValue () const
 Get reference value.
 
CUDA_HOSTDEV size_t size () const
 Get size info of LUT.
 
CUDA_HOSTDEV void size (size_t s)
 Set size info of LUT.
 
CUDA_DEV T eval (double x) const
 Evaluate the LUT.
 
CUDA_HOST T eval_h (double x)
 Evaluate the LUT from host (test function)
 

Constructor & Destructor Documentation

◆ gpuLUT1d() [1/2]

template<typename T>
__host__ isce3::cuda::core::gpuLUT1d< T >::gpuLUT1d ( const isce3::core::LUT1d< T > & lut)

Deep copy constructor from CPU LUT1d.

Parameters
[in]lutLUT1d<T> object

◆ gpuLUT1d() [2/2]

template<typename T>
__host__ __device__ isce3::cuda::core::gpuLUT1d< T >::gpuLUT1d ( gpuLUT1d< T > & lut)

Shallow copy constructor on device.

Parameters
[in]lutgpuLUT1d<T> object

Member Function Documentation

◆ eval()

template<typename T>
__device__ T isce3::cuda::core::gpuLUT1d< T >::eval ( double x) const

Evaluate the LUT.

Parameters
[in]xPoint to evaluate the LUT
[out]resultInterpolated value

◆ operator=()

template<typename T>
__host__ __device__ isce3::cuda::core::gpuLUT1d< T > & isce3::cuda::core::gpuLUT1d< T >::operator= ( gpuLUT1d< T > & lut)

Shallow assignment operator on device.

Parameters
[in]lutgpuLUT1d<T> object

The documentation for this class was generated from the following files:

Generated for ISCE3.0 by doxygen 1.13.2.