123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef BOOST_NUMERIC_UBLAS_OPERATION_NUM_COLUMNS_HPP
- #define BOOST_NUMERIC_UBLAS_OPERATION_NUM_COLUMNS_HPP
- #include <boost/numeric/ublas/detail/config.hpp>
- #include <boost/numeric/ublas/expression_types.hpp>
- #include <boost/numeric/ublas/traits.hpp>
- namespace boost { namespace numeric { namespace ublas {
-
- template <typename MatrixExprT>
- BOOST_UBLAS_INLINE
- typename matrix_traits<MatrixExprT>::size_type num_columns(matrix_expression<MatrixExprT> const& me)
- {
- return me().size2();
- }
- }}}
- #endif
|