Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/numeric/ublas/operation/num_columns.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_columns.hpp |
Chris@16 | 5 * |
Chris@16 | 6 * \brief The \c num_columns operation. |
Chris@16 | 7 * |
Chris@16 | 8 * Copyright (c) 2009, 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 |
Chris@16 | 18 #ifndef BOOST_NUMERIC_UBLAS_OPERATION_NUM_COLUMNS_HPP |
Chris@16 | 19 #define BOOST_NUMERIC_UBLAS_OPERATION_NUM_COLUMNS_HPP |
Chris@16 | 20 |
Chris@16 | 21 |
Chris@16 | 22 #include <boost/numeric/ublas/detail/config.hpp> |
Chris@16 | 23 #include <boost/numeric/ublas/expression_types.hpp> |
Chris@16 | 24 #include <boost/numeric/ublas/traits.hpp> |
Chris@16 | 25 |
Chris@16 | 26 |
Chris@16 | 27 namespace boost { namespace numeric { namespace ublas { |
Chris@16 | 28 |
Chris@16 | 29 /** |
Chris@16 | 30 * \brief Return the number of columns. |
Chris@16 | 31 * \tparam MatrixExprT A type which models the matrix expression concept. |
Chris@16 | 32 * \param m A matrix expression. |
Chris@16 | 33 * \return The number of columns. |
Chris@16 | 34 */ |
Chris@16 | 35 template <typename MatrixExprT> |
Chris@16 | 36 BOOST_UBLAS_INLINE |
Chris@16 | 37 typename matrix_traits<MatrixExprT>::size_type num_columns(matrix_expression<MatrixExprT> const& me) |
Chris@16 | 38 { |
Chris@16 | 39 return me().size2(); |
Chris@16 | 40 } |
Chris@16 | 41 |
Chris@16 | 42 }}} // Namespace boost::numeric::ublas |
Chris@16 | 43 |
Chris@16 | 44 |
Chris@16 | 45 #endif // BOOST_NUMERIC_UBLAS_OPERATION_NUM_COLUMNS_HPP |