Boost.uBlas 1.49
Linear Algebra in C++: matrices, vectors and numeric algorithms

num_columns.hpp

Go to the documentation of this file.
00001 
00018 #ifndef BOOST_NUMERIC_UBLAS_OPERATION_NUM_COLUMNS_HPP
00019 #define BOOST_NUMERIC_UBLAS_OPERATION_NUM_COLUMNS_HPP
00020 
00021 
00022 #include <boost/numeric/ublas/detail/config.hpp>
00023 
00024 
00025 namespace boost { namespace numeric { namespace ublas {
00026 
00033     template <typename MatrixExprT>
00034     BOOST_UBLAS_INLINE
00035     typename MatrixExprT::size_type num_columns(MatrixExprT const& m)
00036     {
00037         return m.size2();
00038     }
00039 
00040 }}} // Namespace boost::numeric::ublas
00041 
00042 
00043 #endif // BOOST_NUMERIC_UBLAS_OPERATION_NUM_COLUMNS_HPP