85 for (index[i]=shape.first(i); index[i]<=shape.last(i); index[i]++)
88 os << i <<
": [" << index[i] <<
"]";
95 os.width(5); os <<
" ";
96 for (
int k=shape.first(1); k<=shape.last(1); k++)
101 for (index[0]=shape.first(0); index[0]<=shape.last(0); index[0]++)
103 os.width(5); os << index[0];
104 for (index[1]=shape.first(1); index[1]<=shape.last(1); index[1]++)
108 { os << shape.offset(index[0]); }
110 { os << shape.offset(index[0], index[1]); }
112 { os << shape.offset(index[0], index[1], index[2]); }
114 { os << shape.offset(index[0], index[1], index[2], index[3]); }
116 { os << shape.offset(index); }
124 for (index[0]=shape.first(0); index[0]<=shape.last(0); index[0]++)
126 os.width(5); os << index[0];
129 { os << shape.offset(index[0]); }
131 { os << shape.offset(index[0], index[1]); }
133 { os << shape.offset(index[0], index[1], index[2]); }
135 { os << shape.offset(index[0], index[1], index[2], index[3]); }
137 { os << shape.offset(index); }
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