7 #ifndef MDS_UTILS_PYTHON_UBLAS_DETAIL_MATRIX_HPP_INCLUDED 8 #define MDS_UTILS_PYTHON_UBLAS_DETAIL_MATRIX_HPP_INCLUDED 12 #include <type_traits> 14 #include <boost/type_traits/is_complex.hpp> 15 #include <boost/numeric/conversion/cast.hpp> 16 #include <boost/numeric/ublas/fwd.hpp> 21 namespace mds_utils {
namespace python {
namespace ublas {
namespace detail {
23 template<
class ublas_orientation>
24 struct ublas_to_npy_storage;
27 struct ublas_to_npy_storage<
boost::numeric::ublas::row_major_tag> {
33 struct ublas_to_npy_storage<
boost::numeric::ublas::row_major> {
39 struct ublas_to_npy_storage<
boost::numeric::ublas::column_major_tag> {
45 struct ublas_to_npy_storage<
boost::numeric::ublas::column_major> {
51 template<
class orientation_category>
55 inline int numpy_flags<boost::numeric::ublas::row_major_tag>() {
60 inline int numpy_flags<boost::numeric::ublas::column_major_tag>() {
Tag for the C storage ordering.
Contains the wrapper for the NumPy iterator for ndarray objects.
Tag for the FORTRAN storage ordering.
Main namespace of all Michele De Stefano's C++ utilities.