2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 07:02:15 +00:00

boost.python.numpy - adding missing symbols, fixed constness in dtype

This commit is contained in:
Jim Bosch
2010-07-25 00:18:18 +00:00
parent c7db44f617
commit b988e8c45f
2 changed files with 26 additions and 2 deletions

View File

@@ -30,6 +30,10 @@
template dtype dtype::get_builtin< std::complex<creal> >()
namespace boost { namespace python {
namespace converter {
NUMPY_OBJECT_MANAGER_TRAITS_IMPL(PyArrayDescr_Type, python::numpy::dtype)
} // namespace boost::python::converter
namespace numpy {
template <typename T> struct dtype_traits;
@@ -61,6 +65,7 @@ NUMPY_DTYPE_TRAITS_BUILTIN(npy_uint, NPY_UINT);
NUMPY_DTYPE_TRAITS_BUILTIN(npy_int, NPY_INT);
NUMPY_DTYPE_TRAITS_BUILTIN(npy_ulong, NPY_ULONG);
NUMPY_DTYPE_TRAITS_BUILTIN(npy_long, NPY_LONG);
NUMPY_DTYPE_TRAITS_BUILTIN(npy_longlong, NPY_LONGLONG);
NUMPY_DTYPE_TRAITS_BUILTIN(npy_float, NPY_FLOAT);
NUMPY_DTYPE_TRAITS_BUILTIN(npy_double, NPY_DOUBLE);
NUMPY_DTYPE_TRAITS_BUILTIN(npy_longdouble, NPY_LONGDOUBLE);