diff -Naur /old/boost/numeric/ublas/operation/num_columns.hpp /new/boost/numeric/ublas/operation/num_columns.hpp
|
old
|
new
|
|
| 1 | 1 | /** |
| 2 | | * -*- c++ -*- |
| 3 | | * |
| 4 | 2 | * \file num_columns.hpp |
| 5 | 3 | * |
| 6 | 4 | * \brief The \c num_columns operation. |
| 7 | 5 | * |
| 8 | | * Copyright (c) 2009, Marco Guazzone |
| | 6 | * Copyright (c) 2009-2012, Marco Guazzone |
| 9 | 7 | * |
| 10 | 8 | * Distributed under the Boost Software License, Version 1.0. (See |
| 11 | 9 | * accompanying file LICENSE_1_0.txt or copy at |
| … |
… |
|
| 20 | 18 | |
| 21 | 19 | |
| 22 | 20 | #include <boost/numeric/ublas/detail/config.hpp> |
| | 21 | #include <boost/numeric/ublas/expression_types.hpp> |
| | 22 | #include <boost/numeric/ublas/traits.hpp> |
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | namespace boost { namespace numeric { namespace ublas { |
| 26 | 26 | |
| 27 | | /** |
| 28 | | * \brief Return the number of columns. |
| 29 | | * \tparam MatrixExprT A type which models the matrix expression concept. |
| 30 | | * \param m A matrix expression. |
| 31 | | * \return The number of columns. |
| 32 | | */ |
| 33 | | template <typename MatrixExprT> |
| 34 | | BOOST_UBLAS_INLINE |
| 35 | | typename MatrixExprT::size_type num_columns(MatrixExprT const& m) |
| 36 | | { |
| 37 | | return m.size2(); |
| 38 | | } |
| | 27 | /** |
| | 28 | * \brief Return the number of columns. |
| | 29 | * \tparam MatrixExprT A type which models the matrix expression concept. |
| | 30 | * \param m A matrix expression. |
| | 31 | * \return The number of columns. |
| | 32 | */ |
| | 33 | template <typename MatrixExprT> |
| | 34 | BOOST_UBLAS_INLINE |
| | 35 | typename matrix_traits<MatrixExprT>::size_type num_columns(matrix_expression<MatrixExprT> const& me) |
| | 36 | { |
| | 37 | return me().size2(); |
| | 38 | } |
| 39 | 39 | |
| 40 | 40 | }}} // Namespace boost::numeric::ublas |
| 41 | 41 | |
diff -Naur /old/boost/numeric/ublas/operation/num_rows.hpp /new/boost/numeric/ublas/operation/num_rows.hpp
|
old
|
new
|
|
| 1 | 1 | /** |
| 2 | | * -*- c++ -*- |
| 3 | | * |
| 4 | 2 | * \file num_rows.hpp |
| 5 | 3 | * |
| 6 | 4 | * \brief The \c num_rows operation. |
| 7 | 5 | * |
| 8 | | * Copyright (c) 2009, Marco Guazzone |
| | 6 | * Copyright (c) 2009-2012, Marco Guazzone |
| 9 | 7 | * |
| 10 | 8 | * Distributed under the Boost Software License, Version 1.0. (See |
| 11 | 9 | * accompanying file LICENSE_1_0.txt or copy at |
| … |
… |
|
| 19 | 17 | |
| 20 | 18 | |
| 21 | 19 | #include <boost/numeric/ublas/detail/config.hpp> |
| | 20 | #include <boost/numeric/ublas/expression_types.hpp> |
| | 21 | #include <boost/numeric/ublas/traits.hpp> |
| 22 | 22 | |
| 23 | 23 | |
| 24 | 24 | namespace boost { namespace numeric { namespace ublas { |
| 25 | 25 | |
| 26 | | /** |
| 27 | | * \brief Return the number of rows. |
| 28 | | * \tparam MatrixExprT A type which models the matrix expression concept. |
| 29 | | * \param m A matrix expression. |
| 30 | | * \return The number of rows. |
| 31 | | */ |
| 32 | | template <typename MatrixExprT> |
| 33 | | BOOST_UBLAS_INLINE |
| 34 | | typename MatrixExprT::size_type num_rows(MatrixExprT const& m) |
| 35 | | { |
| 36 | | return m.size1(); |
| 37 | | } |
| | 26 | /** |
| | 27 | * \brief Return the number of rows. |
| | 28 | * \tparam MatrixExprT A type which models the matrix expression concept. |
| | 29 | * \param m A matrix expression. |
| | 30 | * \return The number of rows. |
| | 31 | */ |
| | 32 | template <typename MatrixExprT> |
| | 33 | BOOST_UBLAS_INLINE |
| | 34 | typename matrix_traits<MatrixExprT>::size_type num_rows(matrix_expression<MatrixExprT> const& me) |
| | 35 | { |
| | 36 | return me().size1(); |
| | 37 | } |
| 38 | 38 | |
| 39 | 39 | }}} // Namespace boost::numeric::ublas |
| 40 | 40 | |