22 #ifndef ASTSHIM_CHEBYMAP_H
23 #define ASTSHIM_CHEBYMAP_H
29 #include "astshim/base.h"
30 #include "astshim/Mapping.h"
45 ChebyDomain(std::vector<double>
const &
lbnd, std::vector<double>
const &
ubnd) : lbnd(lbnd), ubnd(ubnd) {}
46 std::vector<double>
const lbnd;
47 std::vector<double>
const ubnd;
164 explicit ChebyMap(ndarray::Array<double, 2, 2>
const &coeff_f,
165 ndarray::Array<double, 2, 2>
const &coeff_i, std::vector<double>
const &lbnd_f,
166 std::vector<double>
const &ubnd_f, std::vector<double>
const &lbnd_i,
167 std::vector<double>
const &ubnd_i, std::string
const &options =
"")
168 :
Mapping(reinterpret_cast<AstMapping *>(
169 _makeRawChebyMap(coeff_f, coeff_i, lbnd_f, ubnd_f, lbnd_i, ubnd_i, options))) {}
187 explicit ChebyMap(ndarray::Array<double, 2, 2>
const &coeff_f,
int nout,
188 std::vector<double>
const &lbnd_f, std::vector<double>
const &ubnd_f,
189 std::string
const &options =
"IterInverse=0")
190 :
Mapping(reinterpret_cast<AstMapping *>(
191 _makeRawChebyMap(coeff_f, nout, lbnd_f, ubnd_f, options))) {}
300 ChebyMap polyTran(
bool forward,
double acc,
double maxacc,
int maxorder, std::vector<double>
const &lbnd,
301 std::vector<double>
const &ubnd)
const;
307 ChebyMap polyTran(
bool forward,
double acc,
double maxacc,
int maxorder)
const;
311 return copyImpl<ChebyMap, AstChebyMap>();
319 AstChebyMap *_makeRawChebyMap(ndarray::Array<double, 2, 2>
const &coeff_f,
320 ndarray::Array<double, 2, 2>
const &coeff_i,
321 std::vector<double>
const &lbnd_f, std::vector<double>
const &ubnd_f,
322 std::vector<double>
const &lbnd_i, std::vector<double>
const &ubnd_i,
323 std::string
const &options =
"")
const;
326 AstChebyMap *_makeRawChebyMap(ndarray::Array<double, 2, 2>
const &coeff_f,
int nout,
327 std::vector<double>
const &lbnd_f, std::vector<double>
const &ubnd_f,
328 std::string
const &options =
"")
const;
ChebyMap(ndarray::Array< double, 2, 2 > const &coeff_f, ndarray::Array< double, 2, 2 > const &coeff_i, std::vector< double > const &lbnd_f, std::vector< double > const &ubnd_f, std::vector< double > const &lbnd_i, std::vector< double > const &ubnd_i, std::string const &options="")
Definition: ChebyMap.h:164
std::vector< double > const ubnd
upper bound of domain (one element per axis)
Definition: ChebyMap.h:47
Definition: ChebyMap.h:37
ChebyDomain(std::vector< double > const &lbnd, std::vector< double > const &ubnd)
Definition: ChebyMap.h:45
ChebyMap polyTran(bool forward, double acc, double maxacc, int maxorder, std::vector< double > const &lbnd, std::vector< double > const &ubnd) const
Definition: ChebyMap.cc:30
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: ChebyMap.h:310
std::shared_ptr< ChebyMap > copy() const
Return a deep copy of this object.
Definition: ChebyMap.h:201
ChebyMap(ndarray::Array< double, 2, 2 > const &coeff_f, int nout, std::vector< double > const &lbnd_f, std::vector< double > const &ubnd_f, std::string const &options="IterInverse=0")
Definition: ChebyMap.h:187
Definition: ChebyMap.h:97
ChebyDomain getDomain(bool forward) const
Definition: ChebyMap.cc:57
std::vector< double > const lbnd
lower bound of domain (one element per axis)
Definition: ChebyMap.h:46