annotate DEPENDENCIES/generic/include/boost/numeric/ublas/operation/num_rows.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /**
Chris@16 2 * -*- c++ -*-
Chris@16 3 *
Chris@16 4 * \file num_rows.hpp
Chris@16 5 *
Chris@16 6 * \brief The \c num_rows operation.
Chris@16 7 *
Chris@16 8 * Copyright (c) 2009-2012, Marco Guazzone
Chris@16 9 *
Chris@16 10 * Distributed under the Boost Software License, Version 1.0. (See
Chris@16 11 * accompanying file LICENSE_1_0.txt or copy at
Chris@16 12 * http://www.boost.org/LICENSE_1_0.txt)
Chris@16 13 *
Chris@16 14 * \author Marco Guazzone, marco.guazzone@gmail.com
Chris@16 15 */
Chris@16 16
Chris@16 17 #ifndef BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP
Chris@16 18 #define BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP
Chris@16 19
Chris@16 20
Chris@16 21 #include <boost/numeric/ublas/detail/config.hpp>
Chris@16 22 #include <boost/numeric/ublas/expression_types.hpp>
Chris@16 23 #include <boost/numeric/ublas/traits.hpp>
Chris@16 24
Chris@16 25
Chris@16 26 namespace boost { namespace numeric { namespace ublas {
Chris@16 27
Chris@16 28 /**
Chris@16 29 * \brief Return the number of rows.
Chris@16 30 * \tparam MatrixExprT A type which models the matrix expression concept.
Chris@16 31 * \param m A matrix expression.
Chris@16 32 * \return The number of rows.
Chris@16 33 */
Chris@16 34 template <typename MatrixExprT>
Chris@16 35 BOOST_UBLAS_INLINE
Chris@16 36 typename matrix_traits<MatrixExprT>::size_type num_rows(matrix_expression<MatrixExprT> const& me)
Chris@16 37 {
Chris@16 38 return me().size1();
Chris@16 39 }
Chris@16 40
Chris@16 41 }}} // Namespace boost::numeric::ublas
Chris@16 42
Chris@16 43
Chris@16 44 #endif // BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP