| 68 | } |
| 69 | |
| 70 | bool is_aligned(std::vector<Py_intptr_t> const & strides, |
| 71 | int itemsize) |
| 72 | { |
| 73 | for (std::vector<Py_intptr_t>::const_iterator i = strides.begin(); i != strides.end(); ++i) |
| 74 | { |
| 75 | if (*i % itemsize) return false; |
| 76 | } |
| 77 | return true; |
| 78 | } |
| 79 | |
| 80 | inline PyArray_Descr * incref_dtype(dtype const & dt) |
| 81 | { |