28 for (
auto i = arr.begin(); i != arr.end(); ++i) {
29 for (
auto j = i->begin(); j != i->end(); ++j) {
40 if (name !=
"CmpMap") {
43 bool series =
isSeries(reinterpret_cast<AstCmpMap const *>(rawObj));
44 return series ?
"SeriesMap" :
"ParallelMap";
50 int series, invert1, invert2;
51 astDecompose(cmpMap, &rawMap1, &rawMap2, &series, &invert1, &invert2);
table::Key< std::string > name
ndarray::Array< double, 2, 2 > Array2D
2D array of const double; typically used for lists of const points
AST wrapper classes and functions.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
void astBadToNan(std::vector< double > &p)
Replace AST__BAD with a quiet NaN in a vector.
bool isSeries(AstCmpMap const *cmpMap)
Return true if the compound map is in series.
std::string getClassName(AstObject const *rawObj)
Get the AST class name, changing CmpMap to SeriesMap or ParallelMap as appropriate.