Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA > Class Template Reference

Present existing arrays as compressed array based sparse matrix. More...

#include <sparse_view.hpp>

Inheritance diagram for boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >:
Collaboration diagram for boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >:

Classes

class  const_iterator1
 
class  const_iterator2
 

Public Types

typedef vector_view_traits< TA >
::value_type 
value_type
 
typedef boost::remove_cv
< typename vector_view_traits
< JA >::value_type >::type 
index_type
 
typedef index_type size_type
 
typedef vector_view_traits< JA >
::size_type 
array_size_type
 
typedef vector_view_traits< JA >
::difference_type 
difference_type
 
typedef const value_typeconst_reference
 
typedef IA rowptr_array_type
 
typedef JA index_array_type
 
typedef TA value_array_type
 
typedef const matrix_reference
< const self_type
const_closure_type
 
typedef matrix_reference
< self_type
closure_type
 
typedef sparse_tag storage_category
 
typedef L::orientation_category orientation_category
 
typedef reverse_iterator_base1
< const_iterator1
const_reverse_iterator1
 
typedef reverse_iterator_base2
< const_iterator2
const_reverse_iterator2
 
typedef compressed_matrix_view
< L, IB, IA, JA, TA > 
expression_type
 
typedef matrix_tag type_category
 

Public Member Functions

BOOST_UBLAS_INLINE compressed_matrix_view (index_type n_rows, index_type n_cols, array_size_type nnz, const rowptr_array_type &iptr, const index_array_type &jptr, const value_array_type &values)
 
BOOST_UBLAS_INLINE compressed_matrix_view (const compressed_matrix_view &o)
 
index_type size1 () const
 return the number of rows More...
 
index_type size2 () const
 return the number of columns More...
 
value_type operator() (index_type i, index_type j) const
 return value at position (i,j) More...
 
BOOST_UBLAS_INLINE const
expression_type
operator() () const
 
BOOST_UBLAS_INLINE
expression_type
operator() ()
 

Static Public Attributes

static const unsigned complexity
 

Friends

class iterator1
 
class iterator2
 
class const_iterator1
 
class const_iterator2
 

Detailed Description

template<class L, std::size_t IB, class IA, class JA, class TA>
class boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >

Present existing arrays as compressed array based sparse matrix.

This class provides CRS / CCS storage layout.

see also http://www.netlib.org/utk/papers/templates/node90.html

 \param L layout type, either row_major or column_major
 \param IB index base, use 0 for C indexing and 1 for
 FORTRAN indexing of the internal index arrays. This
 does not affect the operator()(int,int) where the first
 row/column has always index 0.
 \param IA index array type, e.g., int[]
 \param TA value array type, e.g., double[]

Member Typedef Documentation

template<class L, std::size_t IB, class IA, class JA, class TA>
typedef vector_view_traits<JA>::size_type boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::array_size_type
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef matrix_reference<self_type> boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::closure_type
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef const matrix_reference<const self_type> boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::const_closure_type
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef const value_type& boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::const_reference
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef reverse_iterator_base1<const_iterator1> boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::const_reverse_iterator1
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef reverse_iterator_base2<const_iterator2> boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::const_reverse_iterator2
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef vector_view_traits<JA>::difference_type boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::difference_type
typedef compressed_matrix_view< L, IB, IA, JA, TA > boost::numeric::ublas::matrix_expression< compressed_matrix_view< L, IB, IA, JA, TA > >::expression_type
inherited
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef JA boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::index_array_type
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef boost::remove_cv<typename vector_view_traits<JA>::value_type>::type boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::index_type
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef L::orientation_category boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::orientation_category
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef IA boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::rowptr_array_type
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef index_type boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::size_type
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef sparse_tag boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::storage_category
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef TA boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::value_array_type
template<class L, std::size_t IB, class IA, class JA, class TA>
typedef vector_view_traits<TA>::value_type boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::value_type

Constructor & Destructor Documentation

template<class L, std::size_t IB, class IA, class JA, class TA>
BOOST_UBLAS_INLINE boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::compressed_matrix_view ( index_type  n_rows,
index_type  n_cols,
array_size_type  nnz,
const rowptr_array_type iptr,
const index_array_type jptr,
const value_array_type values 
)
inline
template<class L, std::size_t IB, class IA, class JA, class TA>
BOOST_UBLAS_INLINE boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::compressed_matrix_view ( const compressed_matrix_view< L, IB, IA, JA, TA > &  o)
inline

Member Function Documentation

template<class L, std::size_t IB, class IA, class JA, class TA>
value_type boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::operator() ( index_type  i,
index_type  j 
) const
inline

return value at position (i,j)

References boost::multiprecision::backends::p.

BOOST_UBLAS_INLINE const expression_type& boost::numeric::ublas::matrix_expression< compressed_matrix_view< L, IB, IA, JA, TA > >::operator() ( ) const
inlineinherited
BOOST_UBLAS_INLINE expression_type& boost::numeric::ublas::matrix_expression< compressed_matrix_view< L, IB, IA, JA, TA > >::operator() ( )
inlineinherited
template<class L, std::size_t IB, class IA, class JA, class TA>
index_type boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::size1 ( ) const
inline

return the number of rows

template<class L, std::size_t IB, class IA, class JA, class TA>
index_type boost::numeric::ublas::compressed_matrix_view< L, IB, IA, JA, TA >::size2 ( ) const
inline

return the number of columns

Friends And Related Function Documentation

template<class L, std::size_t IB, class IA, class JA, class TA>
friend class const_iterator1
friend
template<class L, std::size_t IB, class IA, class JA, class TA>
friend class const_iterator2
friend
template<class L, std::size_t IB, class IA, class JA, class TA>
friend class iterator1
friend
template<class L, std::size_t IB, class IA, class JA, class TA>
friend class iterator2
friend

Member Data Documentation

const unsigned boost::numeric::ublas::matrix_expression< compressed_matrix_view< L, IB, IA, JA, TA > >::complexity
staticinherited

The documentation for this class was generated from the following file: