Boost.uBlas 1.49
Linear Algebra in C++: matrices, vectors and numeric algorithms

size.hpp File Reference

The family of size operations. More...

#include <boost/mpl/has_xxx.hpp>
#include <boost/mpl/if.hpp>
#include <boost/numeric/ublas/detail/config.hpp>
#include <boost/numeric/ublas/expression_types.hpp>
#include <boost/numeric/ublas/fwd.hpp>
#include <boost/numeric/ublas/tags.hpp>
#include <boost/numeric/ublas/traits.hpp>
#include <boost/utility/enable_if.hpp>
#include <cstddef>
Include dependency graph for size.hpp:

Go to the source code of this file.

Classes

struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::matrix_size_type< MatrixT >
 Wrapper type-traits used in boost::lazy_enabled_if for getting the size type (see below). More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_dim_impl< 1, matrix_tag >
 Specialization of size_by_dim_impl for computing the number of rows of a matrix. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_dim_impl< 1, vector_tag >
 Specialization of size_by_dim_impl for computing the size of a vector. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_dim_impl< 2, matrix_tag >
 Specialization of size_by_dim_impl for computing the number of columns of a matrix. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::leading, matrix_tag, column_major_tag >
 Specialization of size_by_tag_impl for computing the size of the leading dimension of a column-major oriented matrix. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::leading, matrix_tag, row_major_tag >
 Specialization of size_by_tag_impl for computing the size of the leading dimension of a row-major oriented matrix. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::major, matrix_tag, column_major_tag >
 Specialization of size_by_tag_impl for computing the size of the major dimension of a column-major oriented matrix. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::major, matrix_tag, row_major_tag >
 Specialization of size_by_tag_impl for computing the size of the major dimension of a row-major oriented matrix. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::minor, matrix_tag, column_major_tag >
 Specialization of size_by_tag_impl for computing the size of the minor dimension of a column-major oriented matrix. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::minor, matrix_tag, row_major_tag >
 Specialization of size_by_tag_impl for computing the size of the minor dimension of a row-major oriented matrix. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< TagT, CategoryT, unknown_orientation_tag >
 Specialization of size_by_tag_impl for computing the size of the given dimension of a unknown oriented expression. More...
struct  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::vector_size_type< VectorT >
 Define a has_size_type trait class. More...

Namespaces

namespace  boost
namespace  boost::numeric
namespace  boost::numeric::ublas
 

contains all important classes and functions of uBLAS


namespace  boost::numeric::ublas::detail
namespace  boost::numeric::ublas::detail::anonymous_namespace{size.hpp}

Functions

template<typename VectorExprT >
BOOST_UBLAS_INLINE
typename::boost::lazy_enable_if_c
< detail::has_size_type
< VectorExprT >::value,
detail::vector_size_type
< VectorExprT >>::type 
boost::numeric::ublas::size (vector_expression< VectorExprT > const &ve)
 Return the number of columns.
template<std::size_t Dim, typename MatrixExprT >
BOOST_UBLAS_INLINE
matrix_traits< MatrixExprT >
::size_type 
boost::numeric::ublas::size (matrix_expression< MatrixExprT > const &me)
 Return the size of the given dimension for the given matrix expression.
template<std::size_t Dim, typename VectorExprT >
BOOST_UBLAS_INLINE
vector_traits< VectorExprT >
::size_type 
boost::numeric::ublas::size (vector_expression< VectorExprT > const &ve)
 Return the size of the given dimension for the given vector expression.

Detailed Description

The family of size operations.

Copyright (c) 2009-2010, Marco Guazzone

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Author:
Marco Guazzone, marco.guazzone@gmail.com

Definition in file size.hpp.