6 * \brief The \c num_rows operation.
8 * Copyright (c) 2009-2012, Marco Guazzone
10 * Distributed under the Boost Software License, Version 1.0. (See
11 * accompanying file LICENSE_1_0.txt or copy at
12 * http://www.boost.org/LICENSE_1_0.txt)
14 * \author Marco Guazzone, marco.guazzone@gmail.com
17 #ifndef BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP
18 #define BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP
21 #include <boost/numeric/ublas/detail/config.hpp>
22 #include <boost/numeric/ublas/expression_types.hpp>
23 #include <boost/numeric/ublas/traits.hpp>
26 namespace boost { namespace numeric { namespace ublas {
29 * \brief Return the number of rows.
30 * \tparam MatrixExprT A type which models the matrix expression concept.
31 * \param m A matrix expression.
32 * \return The number of rows.
34 template <typename MatrixExprT>
36 typename matrix_traits<MatrixExprT>::size_type num_rows(matrix_expression<MatrixExprT> const& me)
41 }}} // Namespace boost::numeric::ublas
44 #endif // BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP