AFF --- A container for numbers (array) by Friederich and Forbriger.
dump_strided.h
Go to the documentation of this file.
1 
37 // include guard
38 #ifndef AFF_DUMP_STRIDED_H_VERSION
39 
40 #define AFF_DUMP_STRIDED_H_VERSION \
41  "AFF_DUMP_STRIDED_H V1.0 "
42 
43 #include<iostream>
44 #include<aff/lib/strided.h>
45 
46 namespace aff {
47 
48 using std::endl;
49 
54 void dump(const Strided& shape, std::ostream& os=std::cout);
55 
56 /*----------------------------------------------------------------------*/
57 
62 void dump_map(const Strided& shape, const Tdim& i=(Strided::Mmax_dimen-1),
63  std::ostream& os=std::cout);
64 
65 } // namespace aff
66 
67 #endif // AFF_DUMP_STRIDED_H_VERSION (includeguard)
68 
69 /* ----- END OF dump_strided.h ----- */
Root namespace of library.
Definition: array.h:148
void dump(const Strided &shape, std::ostream &os)
dump shape
Definition: dump.cc:49
void dump_map(const Strided &shape, const Tdim &i, std::ostream &os)
dump index mapping of shape
Definition: dump.cc:145
static const Tdim Mmax_dimen
instantiate static member (otherwise the linker won&#39;t find it)
Definition: strided.h:123
shape of s strided array (prototypes)
unsigned short int Tdim
Type to hold an array dimensionality.
Definition: types.h:49