Wenzel Jakob
8cb6cb33ef
minor cleanups in common.h; updated author info and copyright year
2016-04-18 10:53:38 +02:00
Wenzel Jakob
d6e4cef65f
minor formatting changes, removed missing header files referenced in setup.py
2016-02-20 12:17:17 +01:00
Johan Mabille
1dc960c37f
NumPy-style broadcasting support in pybind11::vectorize
2016-02-20 12:14:52 +01:00
Wenzel Jakob
48548ea4a5
general cleanup of the codebase
...
- new pybind11::base<> attribute to indicate a subclass relationship
- unified infrastructure for parsing variadic arguments in class_ and cpp_function
- use 'handle' and 'object' more consistently everywhere
2016-01-17 22:31:15 +01:00
Wenzel Jakob
e45b29047a
numpy.h: fixed a leak, added some comments to buffer_info
2016-01-17 22:31:15 +01:00
Wenzel Jakob
d33361a6d7
moved lifetime management of Py_buffer to pybind11::buffer_info, renamed count->size to match NumPy naming ( fixes #34 )
2016-01-17 22:31:15 +01:00
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