A matrix with all values of type T
equal to zero.
More...
#include <matrix.hpp>
Classes | |
class | const_iterator1 |
class | const_iterator2 |
Public Types | |
typedef ALLOC::size_type | size_type |
typedef ALLOC::difference_type | difference_type |
typedef T | value_type |
typedef const T & | const_reference |
typedef T & | reference |
typedef const matrix_reference < const self_type > | const_closure_type |
typedef matrix_reference < self_type > | closure_type |
typedef sparse_tag | storage_category |
typedef unknown_orientation_tag | orientation_category |
typedef reverse_iterator_base1 < const_iterator1 > | const_reverse_iterator1 |
typedef reverse_iterator_base2 < const_iterator2 > | const_reverse_iterator2 |
typedef const_iterator1 | iterator1 |
typedef const_iterator2 | iterator2 |
typedef zero_matrix< T, ALLOC > | container_type |
typedef matrix_tag | type_category |
typedef E | expression_type |
Public Member Functions | |
BOOST_UBLAS_INLINE | zero_matrix () |
BOOST_UBLAS_INLINE | zero_matrix (size_type size) |
BOOST_UBLAS_INLINE | zero_matrix (size_type size1, size_type size2) |
BOOST_UBLAS_INLINE | zero_matrix (const zero_matrix &m) |
BOOST_UBLAS_INLINE size_type | size1 () const |
BOOST_UBLAS_INLINE size_type | size2 () const |
BOOST_UBLAS_INLINE void | resize (size_type size, bool=true) |
BOOST_UBLAS_INLINE void | resize (size_type size1, size_type size2, bool=true) |
BOOST_UBLAS_INLINE const_reference | operator() (size_type, size_type) const |
BOOST_UBLAS_INLINE zero_matrix & | operator= (const zero_matrix &m) |
BOOST_UBLAS_INLINE zero_matrix & | assign_temporary (zero_matrix &m) |
BOOST_UBLAS_INLINE void | swap (zero_matrix &m) |
BOOST_UBLAS_INLINE const_iterator1 | find1 (int, size_type, size_type) const |
BOOST_UBLAS_INLINE const_iterator2 | find2 (int, size_type, size_type) const |
BOOST_UBLAS_INLINE const_iterator1 | begin1 () const |
BOOST_UBLAS_INLINE const_iterator1 | cbegin1 () const |
BOOST_UBLAS_INLINE const_iterator1 | end1 () const |
BOOST_UBLAS_INLINE const_iterator1 | cend1 () const |
BOOST_UBLAS_INLINE const_iterator2 | begin2 () const |
BOOST_UBLAS_INLINE const_iterator2 | cbegin2 () const |
BOOST_UBLAS_INLINE const_iterator2 | end2 () const |
BOOST_UBLAS_INLINE const_iterator2 | cend2 () const |
BOOST_UBLAS_INLINE const_reverse_iterator1 | rbegin1 () const |
BOOST_UBLAS_INLINE const_reverse_iterator1 | crbegin1 () const |
BOOST_UBLAS_INLINE const_reverse_iterator1 | rend1 () const |
BOOST_UBLAS_INLINE const_reverse_iterator1 | crend1 () const |
BOOST_UBLAS_INLINE const_reverse_iterator2 | rbegin2 () const |
BOOST_UBLAS_INLINE const_reverse_iterator2 | crbegin2 () const |
BOOST_UBLAS_INLINE const_reverse_iterator2 | rend2 () const |
BOOST_UBLAS_INLINE const_reverse_iterator2 | crend2 () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
BOOST_UBLAS_INLINE const container_type & | operator() () const |
BOOST_UBLAS_INLINE container_type & | operator() () |
Static Public Attributes | |
static const unsigned | complexity |
Friends | |
BOOST_UBLAS_INLINE friend void | swap (zero_matrix &m1, zero_matrix &m2) |
A matrix with all values of type T
equal to zero.
Changing values does not affect the matrix, however assigning it to a normal matrix will put zero everywhere in the target matrix. All accesses are constant time, due to the trivial value.
T | the type of object stored in the matrix (like double, float, complex, etc...) |
ALLOC | an allocator for storing the zero element. By default, a standar allocator is used. |
typedef matrix_reference<self_type> boost::numeric::ublas::zero_matrix< T, ALLOC >::closure_type |
typedef const matrix_reference<const self_type> boost::numeric::ublas::zero_matrix< T, ALLOC >::const_closure_type |
typedef const T& boost::numeric::ublas::zero_matrix< T, ALLOC >::const_reference |
typedef reverse_iterator_base1<const_iterator1> boost::numeric::ublas::zero_matrix< T, ALLOC >::const_reverse_iterator1 |
typedef reverse_iterator_base2<const_iterator2> boost::numeric::ublas::zero_matrix< T, ALLOC >::const_reverse_iterator2 |
|
inherited |
typedef ALLOC::difference_type boost::numeric::ublas::zero_matrix< T, ALLOC >::difference_type |
|
inherited |
typedef const_iterator1 boost::numeric::ublas::zero_matrix< T, ALLOC >::iterator1 |
typedef const_iterator2 boost::numeric::ublas::zero_matrix< T, ALLOC >::iterator2 |
typedef unknown_orientation_tag boost::numeric::ublas::zero_matrix< T, ALLOC >::orientation_category |
typedef T& boost::numeric::ublas::zero_matrix< T, ALLOC >::reference |
typedef ALLOC::size_type boost::numeric::ublas::zero_matrix< T, ALLOC >::size_type |
typedef sparse_tag boost::numeric::ublas::zero_matrix< T, ALLOC >::storage_category |
|
inherited |
typedef T boost::numeric::ublas::zero_matrix< T, ALLOC >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inline |
References boost::numeric::ublas::zero_matrix< T, ALLOC >::end1().
Referenced by boost::numeric::ublas::zero_matrix< T, ALLOC >::crbegin1().
|
inline |
References boost::numeric::ublas::zero_matrix< T, ALLOC >::end2().
Referenced by boost::numeric::ublas::zero_matrix< T, ALLOC >::crbegin2().
|
inline |
References boost::numeric::ublas::zero_matrix< T, ALLOC >::begin1().
Referenced by boost::numeric::ublas::zero_matrix< T, ALLOC >::crend1().
|
inline |
References boost::numeric::ublas::zero_matrix< T, ALLOC >::begin2().
Referenced by boost::numeric::ublas::zero_matrix< T, ALLOC >::crend2().
|
inline |
References boost::numeric::ublas::size().
|
inline |
|
inline |
|
inline |
Referenced by boost::numeric::ublas::zero_matrix< T, ALLOC >::resize().
|
inline |
Referenced by boost::numeric::ublas::zero_matrix< T, ALLOC >::resize().
|
inline |
References boost::swap.
Referenced by boost::numeric::ublas::zero_matrix< T, ALLOC >::assign_temporary().
|
friend |
|
staticinherited |