LatNet Builder Manual
2.0.1-11
Software Package for Constructing Highly Uniform Point Sets
|
Generic kernel for functors. More...
#include <FunctorAdaptor.h>
Inherits LatBuilder::Kernel::Base< FunctorAdaptor< FUNCTOR > >.
Public Types | |
typedef FUNCTOR | Functor |
Public Member Functions | |
FunctorAdaptor (Functor functor=Functor()) | |
Constructor. | |
template<LatticeType LR, EmbeddingType L, Compress C, PerLevelOrder P> | |
RealVector | valuesVector (const Storage< LR, L, C, P > &storage) const |
Creates a new vector of kernel values. More... | |
bool | symmetric () const |
Returns true if the kernel takes the same value at points \(x\) and \(1 - x\) for \(x \in [0,1)\). | |
std::string | name () const |
Returns the name of the kernel. | |
Public Member Functions inherited from LatBuilder::Kernel::Base< FunctorAdaptor< FUNCTOR > > | |
RealVector | valuesVector (const Storage< LR, L, C, P > &storage) const |
Creates a new vector of kernel values. More... | |
bool | symmetric () const |
Returns true if the kernel takes the same value at points \(x\) and \(1 - x\) for \(x \in [0,1)\). | |
std::string | name () const |
Returns the name of the kernel. | |
FunctorAdaptor< FUNCTOR > & | derived () |
const FunctorAdaptor< FUNCTOR > & | derived () const |
Static Public Member Functions | |
static constexpr Compress | suggestedCompression () |
Protected Member Functions | |
const Functor & | functor () const |
Generic kernel for functors.
This class allows for polymorphism while inlining the functor calls in the loop that initializes new vectors.
FUNCTOR | Type of functor. |
|
inline |
Creates a new vector of kernel values.
The values of the kernel evaluated at sizeParam.numPoints()
regular intervals in \([0,1)\) are stored in a linear vector. The intervals are of size 1/sizeParam.numPoints
() and the first point is at 0.
The \(i^{\text{th}}\) element \(\omega_i\) is:
\(\omega((\nu_m(\frac{i(z)}{P(z)}))\) in the case of a polynomial lattice of modulus \(P(z)\) ( \( i(z) = \sum a_iz^i\) where \(i =\sum a_i2^i\)).
std::logic_error
.