49 Commits (8a801bdc32b40dc54f62e982c6e36577af4b12bb)

Author SHA1 Message Date
pre-commit-ci[bot] 8a801bdc32
chore(deps): update pre-commit hooks (#5350) 10 months ago
Ralf W. Grosse-Kunstleve f1a2e03d19
feat: remove Python 3.6 support (#5177) 1 year ago
Sebastian Berg 705efccecd
feat: make `numpy.h` compatible with both NumPy 1.x and 2.x (#5050) 1 year ago
Mateusz Sokół dd64df73c3
MAINT: Remove np.int_ (#4867) 2 years ago
Ralf W. Grosse-Kunstleve 8e1f9d5c40
Add `format_descriptor<>` & `npy_format_descriptor<>` `PyObject *` specializations. (#4674) 2 years ago
Henry Schreiner 438034c5b8
chore: move to Ruff and add rules (#4483) 2 years ago
Lalaland fab1eebe2c
First draft of Eigen::Tensor support (#4201) 3 years ago
Henry Schreiner 522c59ceb2
chore: drop Python 3.5 (#3719) 3 years ago
Ralf W. Grosse-Kunstleve 6493f496e3
Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 3 years ago
Nick Cullen 503ff2a6fb
view for numpy arrays (#987) 4 years ago
Nick Cullen 59ad1e7d05
reshape for numpy arrays (#984) 4 years ago
Aaron Gokaslan 9df2f1ff13
maint(precommit): Apply isort (#3195) 4 years ago
Jack S. Hale 4c7697dbe9
Add const T to docstring generation. (#3020) 4 years ago
Henry Schreiner c50f90eca6
style: use Black everywhere (#2594) 5 years ago
Yannick Jadoul 56784c4f42
Add unchecked_reference::operator() and operator[] to overload resolution of unchecked_mutable_reference (#2514) 5 years ago
Yannick Jadoul 9df13835c8
Stop py::array_t arguments from accepting arrays that do not match the C- or F-contiguity flags (#2484) 5 years ago
Henry Schreiner 4d9024ec71
tests: cleanup and ci hardening (#2397) 5 years ago
Yannick Jadoul 3e448c0b5e
Enable py::ellipsis on Python 2 (#2360) 5 years ago
Henry Schreiner d8c7ee00a6
ci: GHA basic format & pre-commit (#2309) 5 years ago
Sergei Izmailov 22b2504080 Render full numpy numeric names (e.g. numpy.int32) 5 years ago
Pauli Virtanen c9d32a81f4 numpy: fix refcount leak to dtype singleton (#1860) 6 years ago
Eric Cousineau e9ca89f453 numpy: Add test for explicit dtype checks. At present, int64 + uint64 do not exactly match dtype(...).num 6 years ago
Axel Huebl 000aabb2a7 Test: Numpy Scalar Creation (#1530) 6 years ago
Wenzel Jakob d4b37a284a added py::ellipsis() method for slicing of multidimensional NumPy arrays 7 years ago
Naotoshi Seo 5ef1af138d Fix SEGV to create empty shaped numpy array (#1371) 7 years ago
Jason Rhinelander 88efb25145 Fixes for numpy 1.14.0 compatibility 8 years ago
Jason Rhinelander 391c75447d Update all remaining tests to new test styles 8 years ago
Cris Luengo 30d43c4992 Now `shape`, `size`, `ndims` and `itemsize` are also signed integers. 8 years ago
Cris Luengo d400f60c96 Python buffer objects can have negative strides. 8 years ago
uentity 083a0219b5 array: implement array resize 8 years ago
Jason Rhinelander 5749b50239 array: set exception message on failure 8 years ago
Jason Rhinelander 773339f131 array-unchecked: add runtime dimension support and array-compatible methods 8 years ago
Jason Rhinelander 423a49b8be array: add unchecked access via proxy object 8 years ago
Dean Moldovan 16afbcef46 Improve py::array_t scalar type information (#724) 8 years ago
Jason Rhinelander c44fe6fda5 array_t overload resolution support 8 years ago
Jason Rhinelander 0861be05da Fix numpy tests for big endian architectures 8 years ago
Jason Rhinelander 2a75784420 Move requires_numpy, etc. decorators to globals 8 years ago
Jason Rhinelander fd7517037b Change array's writeable exception to a ValueError 8 years ago
Jason Rhinelander f86dddf7ba array: fix base handling 8 years ago
Jason Rhinelander ee2e5a5086 Make string conversion stricter (#695) 8 years ago
Wenzel Jakob 1d1f81b278 WIP: PyPy support (#527) 9 years ago
Dean Moldovan bad1740213 Add checks to maintain a consistent Python code style and prevent bugs (#515) 9 years ago
Dean Moldovan 4de271027d Improve consistency of array and array_t with regard to other pytypes 9 years ago
Wenzel Jakob 496feacfd0 pybind11: implicitly convert NumPy integer scalars 9 years ago
Wenzel Jakob fac7c09458 NumPy "base" feature: integrated feedback by @aldanor 9 years ago
Wenzel Jakob 369e9b3937 Permit creation of NumPy arrays with a "base" object that owns the data 9 years ago
Wenzel Jakob 43f6aa6846 added numpy test (minor): check that 'strides' is respected even when creating new arrays 9 years ago
Ivan Smirnov aca6bcaea5 Add tests for array data access /index methods 9 years ago
Ivan Smirnov 91b3d681ad Expose some dtype/array attributes via NumPy C API 9 years ago