6.7 A vector and matrix class 203
template
inline constT& Array
#ifCHECKBOUNDS_ON
indexOk(i,j);
#endif
returndata[i + j*dx1];
}
template
inline constT& Array
#ifCHECKBOUNDS_ON
indexOk(i,j,k);
#endif
returndata[i + jdx1 + kdx2];
}
template
inline constT& Array
#ifCHECKBOUNDS_ON
indexOk(i,j,k,l);
#endif
returndata[i + jdx1 + kdx2 + l*dx3];
}
template
inline constT& Array
#ifCHECKBOUNDS_ON
indexOk(i,j,k,l, m);
#endif
returndata[i + jdx1 + kdx2 + ldx3 + mdx4];
}
template
inline constT& Array
#ifCHECKBOUNDS_ON
indexOk(i,j,k,l,m,n);
#endif
returndata[i + jdx1 + kdx2 + ldx3 + mdx4 + n*dx5];
}
template
inlineT& Array
#ifCHECKBOUNDS_ON
indexOk(i);
#endif
returndata[i];
}
template
inlineT& Array
#ifCHECKBOUNDS_ON
indexOk(i,j);