Wenzel Jakob
87187afe91
switch NumPy array to object API, avoid unnecessary copy operation in vectorize
2016-01-17 22:31:15 +01:00
Wenzel Jakob
87dfad6544
avoid naming clashes with numpy ( fixes #36 )
2016-01-17 22:31:15 +01:00
Wenzel Jakob
56e9f4942b
improved signature names for subclasses of pybind11::handle
2016-01-17 22:31:15 +01:00
Wenzel Jakob
4c1a6be4bd
minor cleanups in numpy.h, updated gitignore file for ninja
2016-01-17 22:31:15 +01:00
Tomasz Miąsko
875df5528d
Make handle and related classes const correct.
...
This gives handle classes a typical pointer semantics with respects to
constness.
2015-12-28 08:11:16 +01:00
Wenzel Jakob
d1a24823bc
considerable simplifications to the Python type casters
2015-12-16 12:17:46 +01:00
Jan Dohl
ab92eb3765
Fixed py:array constructor from failing for complex types
...
The array(const buffer_info &info) constructor fails when given
complex types since their format string is 'Zd' or 'Zf' which has
a length of two and causes an error here:
if (info.format.size() != 1)
throw std::runtime_error("Unsupported buffer format!");
Fixed by allowing format sizes of one and two.
2015-12-15 04:16:49 +01:00
Wenzel Jakob
b1b714023a
consistent macro naming throughout the project
2015-10-18 16:48:30 +02:00
Wenzel Jakob
8f4eb00690
last breaking change: be consistent about the project name
2015-10-15 18:23:56 +02:00