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

◆ dump_array()

template<class T >
void aff::dump_array ( const ConstArray< T > &  array,
const Tdim i = (Strided::Mmax_dimen-1),
std::ostream &  os = std::cout 
)

Dump array values.

Examples:
tests/arraytest.cc, tests/f77test.cc, tests/helpertest.cc, and tests/operatortest.cc.

Definition at line 157 of file dump_array.h.

References AFF_assert, dump(), dump_array_values(), and aff::Strided::Mmax_dimen.

Referenced by main(), and printarray().

160 {
161  AFF_assert((i<Strided::Mmax_dimen),
162  "ERROR (dump_map): illegal dimensionality");
163  dump(array);
164  os << "Array elements through " << i+1 << " dimensional access:" << endl;
165  dump_array_values(array, i, os);
166 }
void dump_array_values(const ConstArray< T > &array, const Tdim &i=(Strided::Mmax_dimen-1), std::ostream &os=std::cout)
Dump array values only.
Definition: dump_array.h:140
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:162
void dump(const ConstArray< T > &array, std::ostream &os=std::cout)
Dump array shape.
Definition: dump_array.h:175
Here is the call graph for this function:
Here is the caller graph for this function: