22 #ifndef ASTSHIM_POLYMAP_H 23 #define ASTSHIM_POLYMAP_H 101 :
Mapping(reinterpret_cast<AstMapping *>(_makeRawPolyMap(coeff_f, coeff_i,
options))) {}
127 :
Mapping(reinterpret_cast<AstMapping *>(_makeRawPolyMap(coeff_f, nout,
options))) {}
237 return copyImpl<PolyMap, AstPolyMap>();
PolyMap(ConstArray2D const &coeff_f, int nout, std::string const &options="IterInverse=0")
Construct a PolyMap with only the forward transform specified.
ndarray::Array< const double, 2, 2 > ConstArray2D
2D array of const double; typically used for lists of const points
int getNIterInverse() const
Get NIterInverse: maximum number of iterations for iterative inverse.
PolyMap polyTran(bool forward, double acc, double maxacc, int maxorder, std::vector< double > const &lbnd, std::vector< double > const &ubnd) const
This function creates a new PolyMap which is a copy of this one, in which a specified transformation ...
int getI(std::string const &attrib) const
Get the value of an attribute as an int.
AST wrapper classes and functions.
PolyMap & operator=(PolyMap const &)=delete
An abstract base class for objects which transform one set of coordinates to another.
bool getIterInverse() const
Get IterInverse: does this provide an iterative inverse transformation?
std::shared_ptr< PolyMap > copy() const
Return a deep copy of this object.
bool getB(std::string const &attrib) const
Get the value of an attribute as a bool.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
T static_pointer_cast(T... args)
double getD(std::string const &attrib) const
Get the value of an attribute as a double.
PolyMap is a Mapping which performs a general polynomial transformation.
double getTolInverse() const
Get TolInverse: target relative error for iterative inverse.
Abstract base class for all AST objects.
PolyMap(ConstArray2D const &coeff_f, ConstArray2D const &coeff_i, std::string const &options="IterInverse=0")
Construct a PolyMap with specified forward and/or inverse transforms.