22#ifndef LSST_AFW_MATH_POLYNOMIALS_ScaledBasis2d_h_INCLUDED
23#define LSST_AFW_MATH_POLYNOMIALS_ScaledBasis2d_h_INCLUDED
29template <
typename Basis>
42template <
typename Nested>
95 Nested
const &
getNested() const noexcept {
return _nested; }
162 template <
typename Vector>
169 template <
typename Vector>
172 return getNested().sumWith(
getScaling().applyForward(point), coefficients, workspace, mode);
185 template <
typename Vector>
192 template <
typename Vector>
A floating-point coordinate rectangle geometry.
A 2-d function defined by a series expansion and its coefficients.
typename Chebyshev1Basis2d< packing >::Workspace Workspace
Scaling2d const & getScaling() const noexcept
double sumWith(geom::Point2D const &point, Vector const &coefficients, Workspace &workspace, SumMode mode=SumMode::FAST) const
Function2d< ScaledBasis2d > Function
void fill(geom::Point2D const &point, Vector &&basis, Workspace &workspace) const
ScaledBasis2d(ScaledBasis2d const &)=default
ScaledBasis2d(Nested const &nested, Scaling2d const &scaling)
Construct a scaled basis from a nested basis and a scaling transform.
Chebyshev1Basis2d< packing > const & getNested() const noexcept
ScaledBasis2d< Chebyshev1Basis2d< packing > > Scaled
ScaledBasis2d(std::size_t order, Box2D const &box)
IndexRange getIndices() const
ScaledBasis2d(ScaledBasis2d &&)=default
Workspace makeWorkspace() const
ScaledBasis2d & operator=(ScaledBasis2d &&)=default
Scaled scaled(Scaling2d const &first) const
void fill(geom::Point2D const &point, Vector &&basis) const
ScaledBasis2d & operator=(ScaledBasis2d const &)=default
std::size_t getOrder() const
double sumWith(geom::Point2D const &point, Vector const &coefficients, SumMode mode=SumMode::FAST) const
int index(int x, int y) const
typename Chebyshev1Basis2d< packing >::IndexRange IndexRange
A 2-d separable affine transform that can be used to map one interval to another.
Scaling2d then(Scaling2d const &second) const noexcept
Compose two transforms.
Low-level polynomials (including special polynomials) in C++.
Scaling2d makeUnitRangeScaling2d(geom::Box2D const &box)
Return a Scaling1d that maps the given box to [-1, 1]x[-1, 1].
SumMode
Enum used to control how to sum polynomial terms.
@ FAST
Summation using regular floating-point addition.
Point< double, 2 > Point2D