source:
vendors/XIOS/current/extern/boost/include/boost/numeric/ublas/operation/num_rows.hpp
@
3408
Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago | |
---|---|
|
|
File size: 1022 bytes |
Line | |
---|---|
1 | /** |
2 | * -*- c++ -*- |
3 | * |
4 | * \file num_rows.hpp |
5 | * |
6 | * \brief The \c num_rows operation. |
7 | * |
8 | * Copyright (c) 2009, Marco Guazzone |
9 | * |
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) |
13 | * |
14 | * \author Marco Guazzone, marco.guazzone@gmail.com |
15 | */ |
16 | |
17 | #ifndef BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP |
18 | #define BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP |
19 | |
20 | |
21 | #include <boost/numeric/ublas/detail/config.hpp> |
22 | |
23 | |
24 | namespace boost { namespace numeric { namespace ublas { |
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 | } |
38 | |
39 | }}} // Namespace boost::numeric::ublas |
40 | |
41 | |
42 | #endif // BOOST_NUMERIC_UBLAS_OPERATION_NUM_ROWS_HPP |
Note: See TracBrowser
for help on using the repository browser.