pybind11/include/pybind11
Oleksandr Pavlyk ba7a0fac73
Expand dtype accessors (#3868)
* Added constructor based on typenum, based on PyArray_DescrFromType

Added accessors for typenum, alignment, byteorder and flags fields of
PyArray_Descr struct.

* Added tests for new py::dtype constructor, and for accessors

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fixed the comment for alignment method

* Update include/pybind11/numpy.h

Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
2022-04-14 10:53:16 -04:00
..
detail (perf): Add missing move in sp matrix caster and microopt char concats (#3823) 2022-03-24 12:57:37 -04:00
stl feature: support compilers that use std::experimental::filesystem (#3840) 2022-03-31 22:16:10 -07:00
attr.h Dropping MSVC 2015 (#3722) 2022-02-14 11:36:22 -08:00
buffer_info.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
cast.h Cleanup cast_safe<void> specialization (#3861) 2022-04-11 11:57:05 -07:00
chrono.h chore: drop Python 3.5 (#3719) 2022-02-11 19:06:16 -05:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
eigen.h (perf): Add missing move in sp matrix caster and microopt char concats (#3823) 2022-03-24 12:57:37 -04:00
embed.h fix: clear local internals after finalizing interpreter #2101 (#3744) 2022-02-20 08:00:29 -08:00
eval.h fix: missing move in eval.h (#3775) 2022-03-02 15:25:43 -05:00
functional.h Dropping MSVC 2015 (#3722) 2022-02-14 11:36:22 -08:00
gil.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
iostream.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
numpy.h Expand dtype accessors (#3868) 2022-04-14 10:53:16 -04:00
operators.h Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 2022-02-10 18:28:08 -08:00
options.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
pybind11.h Add perfect forwarding to make_iterator calls (#3860) 2022-04-11 14:03:43 -04:00
pytypes.h Adds set_name method of pybind11::capsule class (#3866) 2022-04-14 10:51:27 -04:00
stl_bind.h chore: Make stl_bind take slice as const_ref (#3852) 2022-04-11 13:53:30 -04:00
stl.h perf: Add more moves and optimize (#3845) 2022-04-05 14:36:39 -04:00