41 #ifndef AFF_DUMP_SERIES_H_VERSION 43 #define AFF_DUMP_SERIES_H_VERSION \ 44 "AFF_DUMP_SERIES_H V1.1" 59 std::ostream& os=std::cout)
61 os <<
"dump of a Series object:" << endl;
62 os <<
" size: " << series.
size() << endl;
63 os <<
" index range: [" << series.
f() <<
":" << series.
l() <<
"]" << endl;
64 os <<
" elements:" << endl;
68 if (!i) { os <<
" "; }
70 os << series(k) <<
" ";
71 if (++i>7) { i=0; os << endl; }
78 #endif // AFF_DUMP_SERIES_H_VERSION (includeguard) Root namespace of library.
void dump(const Strided &shape, std::ostream &os)
dump shape
const Tsubscript & l() const
(short for) last valid index
linear series class (prototypes)
Tsize size() const
by size we mean the size defined by the shape
ptrdiff_t Tsubscript
Type to hold an array's subscript value.
const Tsubscript & f() const
(short for) first valid index