Namespaces | Defines | Functions
dtype.cpp File Reference
#include <boost/numpy/internal.hpp>
Include dependency graph for src/dtype.cpp:

Go to the source code of this file.

Namespaces

namespace  boost
namespace  boost::numpy
namespace  boost::numpy::detail
namespace  boost::python
namespace  boost::python::converter

Defines

#define BOOST_NUMPY_INTERNAL
#define BUILTIN_COMPLEX_DTYPE(bits)
#define BUILTIN_FLOAT_DTYPE(bits)
#define BUILTIN_INT_DTYPE(bits)
#define DTYPE_FROM_CODE(code)   dtype(python::detail::new_reference(reinterpret_cast<PyObject*>(PyArray_DescrFromType(code))))

Functions

 boost::numpy::detail::BUILTIN_COMPLEX_DTYPE (64)
 boost::numpy::detail::BUILTIN_COMPLEX_DTYPE (128)
 boost::numpy::detail::BUILTIN_FLOAT_DTYPE (32)
 boost::numpy::detail::BUILTIN_FLOAT_DTYPE (64)
 boost::numpy::detail::BUILTIN_INT_DTYPE (8)
 boost::numpy::detail::BUILTIN_INT_DTYPE (16)
 boost::numpy::detail::BUILTIN_INT_DTYPE (32)
 boost::numpy::detail::BUILTIN_INT_DTYPE (64)
bool boost::numpy::equivalent (dtype const &a, dtype const &b)
template<int bits>
dtype boost::numpy::detail::get_complex_dtype ()
template<int bits>
dtype boost::numpy::detail::get_float_dtype ()
template<int bits, bool isUnsigned>
dtype boost::numpy::detail::get_int_dtype ()

Define Documentation

Definition at line 6 of file src/dtype.cpp.

#define BUILTIN_COMPLEX_DTYPE (   bits)
Value:
template <> struct builtin_complex_dtype< bits > {                  \
        static dtype get() { return DTYPE_FROM_CODE(NPY_COMPLEX ## bits); } \
    };                                                                  \
    template dtype get_complex_dtype< bits >()

Definition at line 28 of file src/dtype.cpp.

#define BUILTIN_FLOAT_DTYPE (   bits)
Value:
template <> struct builtin_float_dtype< bits > {                    \
        static dtype get() { return DTYPE_FROM_CODE(NPY_FLOAT ## bits); } \
    };                                                                  \
    template dtype get_float_dtype< bits >()

Definition at line 22 of file src/dtype.cpp.

#define BUILTIN_INT_DTYPE (   bits)
Value:
template <> struct builtin_int_dtype< bits, false > {               \
        static dtype get() { return DTYPE_FROM_CODE(NPY_INT ## bits); } \
    };                                                                  \
    template <> struct builtin_int_dtype< bits, true > {                \
        static dtype get() { return DTYPE_FROM_CODE(NPY_UINT ## bits); } \
    };                                                                  \
    template dtype get_int_dtype< bits, false >();                      \
    template dtype get_int_dtype< bits, true >()

Definition at line 12 of file src/dtype.cpp.

#define DTYPE_FROM_CODE (   code)    dtype(python::detail::new_reference(reinterpret_cast<PyObject*>(PyArray_DescrFromType(code))))

Definition at line 9 of file src/dtype.cpp.



boost_numpy
Author(s): Jim Bosch, Ankit Daftery
autogenerated on Fri Aug 28 2015 10:10:40