22 inline ArrayRef2D(
T* vals,
int dim1,
int dim2) : values(vals), dimension2(dim2) {};
23 inline ArrayRef2D(
T* vals,
int dim2) : values(vals), dimension2(dim2) {};
24 inline T*
operator[] (
int i) {
return values + i * dimension2; }
37 ArrayRef3D(
T* vals,
int dim1,
int dim2,
int dim3) : values(vals), dimension2(dim2), dimension3(dim3), mult(dim2 * dim3) {};
53 values(vals), dimension2(dim2), dimension3(dim3), dimension4(dim4),mult1(dim2 * dim3 * dim4) {};
69 ArrayRef5D(
T* vals,
int dim1,
int dim2,
int dim3,
int dim4,
int dim5) :
70 values(vals), dimension2(dim2), dimension3(dim3), dimension4(dim4), dimension5(dim5),mult1(dim2 * dim3 * dim4* dim5) {};
87 ArrayRef6D(
T* vals,
int dim1,
int dim2,
int dim3,
int dim4,
int dim5,
int dim6) :
88 values(vals), dimension2(dim2), dimension3(dim3), dimension4(dim4), dimension5(dim5), dimension6(dim6), mult1(dim2 * dim3 * dim4 * dim5 * dim6) {};