| 198 | Array::~Array() {} |
| 199 | |
| 200 | int Array::checkdim(int dim) const { |
| 201 | if (dim < 0) { |
| 202 | dim = ndim() + dim; |
| 203 | } |
| 204 | if (dim < ndim()) { |
| 205 | return dim; |
| 206 | } else { |
| 207 | throw std::runtime_error("Array: out of bound dimension"); |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | namespace array { |
| 212 |