74 for (index[i]=array.
f(i); index[i]<=array.
l(i); index[i]++)
77 os << i <<
": [" << index[i] <<
"]";
84 os.width(5); os <<
" ";
85 for (
int k=array.
f(1); k<=array.
l(1); k++)
90 for (index[0]=array.
f(0); index[0]<=array.
l(0); index[0]++)
92 os.width(5); os << index[0];
93 for (index[1]=array.
f(1); index[1]<=array.
l(1); index[1]++)
97 { os << array(index[0]); }
99 { os << array(index[0], index[1]); }
101 { os << array(index[0], index[1], index[2]); }
103 { os << array(index[0], index[1], index[2], index[3]); }
105 { os << array(index); }
113 for (index[0]=array.
f(0); index[0]<=array.
l(0); index[0]++)
115 os.width(5); os << index[0];
118 { os << array(index[0]); }
120 { os << array(index[0], index[1]); }
122 { os << array(index[0], index[1], index[2]); }
124 { os << array(index[0], index[1], index[2], index[3]); }
126 { os << array(index); }
const Tsubscript & l(const Tsubscript &i) const
return last index of dimension i
void dump_array_helper(const aff::ConstArray< T > &array, const Tdim &i, const Tdim &j, Strided::TIndexVec &index, std::ostream &os)
recursive usage tests all access functions
const Tsubscript & f(const Tsubscript &i) const
return first index of dimension i