AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ dump_map()

void aff::dump_map ( const Strided shape,
const Tdim i,
std::ostream &  os 
)

dump index mapping of shape

Dump array shape mapping.

Examples:
tests/shapetest.cc.

Definition at line 145 of file dump.cc.

References AFF_assert, dump(), aff::anonymous_namespace{dump.cc}::dump_map_helper(), aff::Strided::first(), and aff::Strided::Mmax_dimen.

Referenced by main().

146 {
147  AFF_assert((i<Strided::Mmax_dimen),
148  "ERROR (dump_map): illegal dimensionality");
149  dump(shape);
150  os << " index mapping for " << i+1 << " dimensional access:" << endl;
151  Strided::TIndexVec index(shape.first());
152  dump_map_helper(shape, i, i, index, os);
153 }
void dump(const Strided &shape, std::ostream &os)
dump shape
Definition: dump.cc:49
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:162
void dump_map_helper(const Strided &shape, const Tdim &i, const Tdim &j, Strided::TIndexVec &index, std::ostream &os)
recursive usage tests all offset functions
Definition: dump.cc:80
Here is the call graph for this function:
Here is the caller graph for this function: