at method
Get a single element by multi-dimensional index.
Implementation
double at(List<int> indices) {
assert(indices.length == ndim);
int offset = 0;
for (int i = 0; i < ndim; i++) {
offset += indices[i] * strides[i];
}
return data[offset];
}