Lines 98-104
python::detail::new_reference dtype::convert(object const & arg, bool align)
Link Here
|
98 |
return python::detail::new_reference(reinterpret_cast<PyObject*>(obj)); |
98 |
return python::detail::new_reference(reinterpret_cast<PyObject*>(obj)); |
99 |
} |
99 |
} |
100 |
|
100 |
|
101 |
int dtype::get_itemsize() const { return reinterpret_cast<PyArray_Descr*>(ptr())->elsize;} |
101 |
int dtype::get_itemsize() const { |
|
|
102 |
#if NPY_ABI_VERSION < 0x02000000 |
103 |
return reinterpret_cast<PyArray_Descr*>(ptr())->elsize; |
104 |
#else |
105 |
return PyDataType_ELSIZE(reinterpret_cast<PyArray_Descr*>(ptr())); |
106 |
#endif |
107 |
} |
102 |
|
108 |
|
103 |
bool equivalent(dtype const & a, dtype const & b) { |
109 |
bool equivalent(dtype const & a, dtype const & b) { |
104 |
// On Windows x64, the behaviour described on |
110 |
// On Windows x64, the behaviour described on |