annotate DEPENDENCIES/generic/include/boost/numeric/ublas/operation/num_columns.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +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