| 1501 | } |
| 1502 | |
| 1503 | static bool check_(handle h) { |
| 1504 | const auto &api = detail::npy_api::get(); |
| 1505 | return api.PyArray_Check_(h.ptr()) |
| 1506 | && api.PyArray_EquivTypes_(detail::array_proxy(h.ptr())->descr, |
| 1507 | dtype::of<T>().ptr()) |
| 1508 | && detail::check_flags(h.ptr(), ExtraFlags & (array::c_style | array::f_style)); |
| 1509 | } |
| 1510 | |
| 1511 | protected: |
| 1512 | /// Create array from any object -- always returns a new reference |
no test coverage detected