Public Member Functions | Data Fields
CSplineKernel::SCache Struct Reference

#include <mia/core/splinekernel.hh>

Public Member Functions

void reset ()
 
 SCache (size_t s, const CSplineBoundaryCondition &bc, bool am)
 

Data Fields

const CSplineBoundaryConditionboundary_condition
 the boundary condition to be applied More...
 
VIndex index
 cached indices More...
 
int index_limit
 last possible start index More...
 
bool is_flat
 store whether indices were mirrored More...
 
bool never_flat
 always use mirror More...
 
int start_idx
 last start index the B-spline was evaluated for More...
 
VWeight weights
 cached weights More...
 
double x
 

Detailed Description

A struture to cache B-spline weights and indices

Definition at line 68 of file splinekernel.hh.

Constructor & Destructor Documentation

CSplineKernel::SCache::SCache ( size_t  s,
const CSplineBoundaryCondition bc,
bool  am 
)

Initialize the case by setting the index and weight array size and mirror boundary sizes

Parameters
ssupport size of the kernel which equals the size of the index and weight arrays
bcBoundary conditions to be used, this is a reference to the parent interpolator object
amset to true if indices always need to be set

Member Function Documentation

void CSplineKernel::SCache::reset ( )

reset the parameters of the cache

Field Documentation

const CSplineBoundaryCondition& CSplineKernel::SCache::boundary_condition

the boundary condition to be applied

Definition at line 101 of file splinekernel.hh.

VIndex CSplineKernel::SCache::index

cached indices

Definition at line 98 of file splinekernel.hh.

int CSplineKernel::SCache::index_limit

last possible start index

Definition at line 92 of file splinekernel.hh.

bool CSplineKernel::SCache::is_flat

store whether indices were mirrored

Definition at line 104 of file splinekernel.hh.

bool CSplineKernel::SCache::never_flat

always use mirror

Definition at line 107 of file splinekernel.hh.

int CSplineKernel::SCache::start_idx

last start index the B-spline was evaluated for

Definition at line 89 of file splinekernel.hh.

VWeight CSplineKernel::SCache::weights

cached weights

Definition at line 95 of file splinekernel.hh.

double CSplineKernel::SCache::x

last location the B-spline was evaluated at. This value is initialized to NaN to make sure we

Definition at line 86 of file splinekernel.hh.


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