LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst::afw::math::detail::gpu::BilinearInterp Struct Reference

#include <CudaLanczos.h>

Public Member Functions

 BilinearInterp ()
 difference of neighboring values in the first column (gradient of a line at x=0) More...
 
 BilinearInterp (SPoint2 par_o, SVec2 par_d0X, SVec2 par_ddX, SVec2 par_deltaY)
 
LinearInterp GetLinearInterp (int subY)
 intersects the interpolation surface with a const-y plane More...
 
SPoint2 Interpolate (int subX, int subY)
 Calculates a value of the interpolation surface at a point (subX,subY) More...
 

Public Attributes

SPoint2 o
 
SVec2 d0X
 defines the value at origin More...
 
SVec2 ddX
 difference of difference of neighboring values in two neighbouring rows (diff. of gradients at x=0 and x=1) More...
 
SVec2 deltaY
 

Detailed Description

Used for bilinear interpolation of a 2D function Z*Z -> R*R

This class just defines a 2D surface which can be used to interpolate a segment of a 2D function.

It does not specify which segment of the function is interpolated.

Definition at line 149 of file CudaLanczos.h.

Constructor & Destructor Documentation

lsst::afw::math::detail::gpu::BilinearInterp::BilinearInterp ( )
inline

difference of neighboring values in the first column (gradient of a line at x=0)

Definition at line 157 of file CudaLanczos.h.

157 : o(0,0), d0X(0,0), ddX(0,0), deltaY(0,0) {};
SVec2 d0X
defines the value at origin
Definition: CudaLanczos.h:152
SVec2 ddX
difference of difference of neighboring values in two neighbouring rows (diff. of gradients at x=0 an...
Definition: CudaLanczos.h:154
lsst::afw::math::detail::gpu::BilinearInterp::BilinearInterp ( SPoint2  par_o,
SVec2  par_d0X,
SVec2  par_ddX,
SVec2  par_deltaY 
)
inline

Definition at line 159 of file CudaLanczos.h.

160  : o(par_o), d0X(par_d0X), ddX(par_ddX), deltaY(par_deltaY) {}
SVec2 d0X
defines the value at origin
Definition: CudaLanczos.h:152
SVec2 ddX
difference of difference of neighboring values in two neighbouring rows (diff. of gradients at x=0 an...
Definition: CudaLanczos.h:154

Member Function Documentation

LinearInterp lsst::afw::math::detail::gpu::BilinearInterp::GetLinearInterp ( int  subY)
inline

intersects the interpolation surface with a const-y plane

Definition at line 164 of file CudaLanczos.h.

165  {
166  SVec2 deltaX=VecAdd(d0X, VecMul(ddX, subY));
167  SPoint2 lineBeg= MovePoint(o, VecMul(deltaY,subY) );
168  return LinearInterp(lineBeg, deltaX);
169  }
SVec2 d0X
defines the value at origin
Definition: CudaLanczos.h:152
SPoint2 MovePoint(SPoint2 p, SVec2 v)
Definition: CudaLanczos.h:94
SVec2 VecMul(SVec2 v, double m)
Definition: CudaLanczos.h:90
SVec2 ddX
difference of difference of neighboring values in two neighbouring rows (diff. of gradients at x=0 an...
Definition: CudaLanczos.h:154
SVec2 VecAdd(SVec2 a, SVec2 b)
Definition: CudaLanczos.h:82
SPoint2 lsst::afw::math::detail::gpu::BilinearInterp::Interpolate ( int  subX,
int  subY 
)
inline

Calculates a value of the interpolation surface at a point (subX,subY)

Definition at line 172 of file CudaLanczos.h.

173  {
174  LinearInterp lineY=GetLinearInterp(subY);
175  return lineY.Interpolate(subX);
176  }
LinearInterp GetLinearInterp(int subY)
intersects the interpolation surface with a const-y plane
Definition: CudaLanczos.h:164

Member Data Documentation

SVec2 lsst::afw::math::detail::gpu::BilinearInterp::d0X

defines the value at origin

Definition at line 152 of file CudaLanczos.h.

SVec2 lsst::afw::math::detail::gpu::BilinearInterp::ddX

difference of difference of neighboring values in two neighbouring rows (diff. of gradients at x=0 and x=1)

difference of neighboring values in the first row (the gradient of a line at y=0)

Definition at line 154 of file CudaLanczos.h.

SVec2 lsst::afw::math::detail::gpu::BilinearInterp::deltaY

Definition at line 155 of file CudaLanczos.h.

SPoint2 lsst::afw::math::detail::gpu::BilinearInterp::o

Definition at line 151 of file CudaLanczos.h.


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