![]() |
Boost.uBlas 1.49
Linear Algebra in C++: matrices, vectors and numeric algorithms
|
A triangular matrix of values of type T
.
More...
#include <triangular.hpp>
Classes | |
class | const_iterator1 |
class | const_iterator2 |
class | iterator1 |
class | iterator2 |
Public Types | |
typedef A | array_type |
typedef matrix_reference < self_type > | closure_type |
typedef const matrix_reference < const self_type > | const_closure_type |
typedef const T & | const_reference |
typedef reverse_iterator_base1 < const_iterator1 > | const_reverse_iterator1 |
typedef reverse_iterator_base2 < const_iterator2 > | const_reverse_iterator2 |
typedef triangular_matrix< T, TRI, L, A > | container_type |
typedef A::difference_type | difference_type |
typedef triangular_matrix< T, TRI, L, A > | expression_type |
typedef matrix< T, L, A > | matrix_temporary_type |
typedef L::orientation_category | orientation_category |
typedef T & | reference |
typedef reverse_iterator_base1 < iterator1 > | reverse_iterator1 |
typedef reverse_iterator_base2 < iterator2 > | reverse_iterator2 |
typedef A::size_type | size_type |
typedef packed_tag | storage_category |
typedef matrix_tag | type_category |
typedef T | value_type |
typedef vector< T, A > | vector_temporary_type |
Public Member Functions | |
BOOST_UBLAS_INLINE | triangular_matrix () |
BOOST_UBLAS_INLINE | triangular_matrix (size_type size1, size_type size2) |
BOOST_UBLAS_INLINE | triangular_matrix (const triangular_matrix &m) |
template<class AE > | |
BOOST_UBLAS_INLINE | triangular_matrix (const matrix_expression< AE > &ae) |
BOOST_UBLAS_INLINE | triangular_matrix (size_type size1, size_type size2, const array_type &data) |
template<class AE > | |
BOOST_UBLAS_INLINE triangular_matrix & | assign (const matrix_expression< AE > &ae) |
BOOST_UBLAS_INLINE triangular_matrix & | assign_temporary (triangular_matrix &m) |
BOOST_UBLAS_INLINE reference | at_element (size_type i, size_type j) |
BOOST_UBLAS_INLINE const_iterator1 | begin1 () const |
BOOST_UBLAS_INLINE iterator1 | begin1 () |
BOOST_UBLAS_INLINE const_iterator2 | begin2 () const |
BOOST_UBLAS_INLINE iterator2 | begin2 () |
BOOST_UBLAS_INLINE void | clear () |
BOOST_UBLAS_INLINE const array_type & | data () const |
BOOST_UBLAS_INLINE array_type & | data () |
BOOST_UBLAS_INLINE const_iterator1 | end1 () const |
BOOST_UBLAS_INLINE iterator1 | end1 () |
BOOST_UBLAS_INLINE const_iterator2 | end2 () const |
BOOST_UBLAS_INLINE iterator2 | end2 () |
BOOST_UBLAS_INLINE void | erase_element (size_type i, size_type j) |
BOOST_UBLAS_INLINE const_iterator1 | find1 (int rank, size_type i, size_type j) const |
BOOST_UBLAS_INLINE iterator1 | find1 (int rank, size_type i, size_type j) |
BOOST_UBLAS_INLINE iterator2 | find2 (int rank, size_type i, size_type j) |
BOOST_UBLAS_INLINE const_iterator2 | find2 (int rank, size_type i, size_type j) const |
BOOST_UBLAS_INLINE reference | insert_element (size_type i, size_type j, const_reference t) |
template<class AE > | |
BOOST_UBLAS_INLINE triangular_matrix & | minus_assign (const matrix_expression< AE > &ae) |
BOOST_UBLAS_INLINE const container_type & | operator() () const |
BOOST_UBLAS_INLINE container_type & | operator() () |
BOOST_UBLAS_INLINE const_reference | operator() (size_type i, size_type j) const |
BOOST_UBLAS_INLINE reference | operator() (size_type i, size_type j) |
template<class AT > | |
BOOST_UBLAS_INLINE triangular_matrix & | operator*= (const AT &at) |
template<class AE > | |
BOOST_UBLAS_INLINE triangular_matrix & | operator+= (const matrix_expression< AE > &ae) |
template<class AE > | |
BOOST_UBLAS_INLINE triangular_matrix & | operator-= (const matrix_expression< AE > &ae) |
template<class AT > | |
BOOST_UBLAS_INLINE triangular_matrix & | operator/= (const AT &at) |
BOOST_UBLAS_INLINE triangular_matrix & | operator= (const triangular_matrix &m) |
template<class AE > | |
BOOST_UBLAS_INLINE triangular_matrix & | operator= (const matrix_expression< AE > &ae) |
template<class AE > | |
BOOST_UBLAS_INLINE triangular_matrix & | plus_assign (const matrix_expression< AE > &ae) |
BOOST_UBLAS_INLINE const_reverse_iterator1 | rbegin1 () const |
BOOST_UBLAS_INLINE reverse_iterator1 | rbegin1 () |
BOOST_UBLAS_INLINE const_reverse_iterator2 | rbegin2 () const |
BOOST_UBLAS_INLINE reverse_iterator2 | rbegin2 () |
BOOST_UBLAS_INLINE reverse_iterator1 | rend1 () |
BOOST_UBLAS_INLINE const_reverse_iterator1 | rend1 () const |
BOOST_UBLAS_INLINE const_reverse_iterator2 | rend2 () const |
BOOST_UBLAS_INLINE reverse_iterator2 | rend2 () |
BOOST_UBLAS_INLINE void | resize (size_type size1, size_type size2, bool preserve=true) |
BOOST_UBLAS_INLINE void | resize_packed_preserve (size_type size1, size_type size2) |
BOOST_UBLAS_INLINE size_type | size1 () const |
BOOST_UBLAS_INLINE size_type | size2 () const |
BOOST_UBLAS_INLINE void | swap (triangular_matrix &m) |
Static Public Attributes | |
static const unsigned | complexity |
Private Types | |
typedef L | layout_type |
typedef T * | pointer |
typedef triangular_matrix< T, TRI, L, A > | self_type |
typedef TRI | triangular_type |
Private Attributes | |
array_type | data_ |
size_type | size1_ |
size_type | size2_ |
Static Private Attributes | |
static const value_type | one_ |
static const value_type | zero_ = value_type() |
Friends | |
BOOST_UBLAS_INLINE friend void | swap (triangular_matrix &m1, triangular_matrix &m2) |
A triangular matrix of values of type T
.
For a -dimensional lower triangular matrix and if
,
and
holds,
. Furthermore if
, the matrix is called unit lower triangular.
For a -dimensional upper triangular matrix and if
,
and
holds,
. Furthermore if
, the matrix is called unit upper triangular.
The default storage for triangular matrices is packed. Orientation and storage can also be specified. Default is row_major
and and unbounded_array. It is not required by the storage to initialize elements of the matrix.
T | the type of object stored in the matrix (like double, float, complex, etc...) |
TRI | the type of the triangular matrix. It can either be lower or upper . Default is lower |
L | the storage organization. It can be either row_major or column_major . Default is row_major |
A | the type of Storage array. Default is unbounded_array |
Definition at line 78 of file triangular.hpp.
typedef T* boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::pointer [private] |
Definition at line 81 of file triangular.hpp.
typedef TRI boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::triangular_type [private] |
Definition at line 82 of file triangular.hpp.
typedef L boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::layout_type [private] |
Definition at line 83 of file triangular.hpp.
typedef triangular_matrix<T, TRI, L, A> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::self_type [private] |
Reimplemented from boost::numeric::ublas::matrix_expression< triangular_matrix< T, TRI, L, A > >.
Definition at line 84 of file triangular.hpp.
typedef A::size_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::size_type |
Definition at line 89 of file triangular.hpp.
typedef A::difference_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::difference_type |
Definition at line 90 of file triangular.hpp.
typedef T boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::value_type |
Definition at line 91 of file triangular.hpp.
typedef const T& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::const_reference |
Definition at line 92 of file triangular.hpp.
typedef T& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::reference |
Definition at line 93 of file triangular.hpp.
typedef A boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::array_type |
Definition at line 94 of file triangular.hpp.
typedef const matrix_reference<const self_type> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::const_closure_type |
Definition at line 96 of file triangular.hpp.
typedef matrix_reference<self_type> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::closure_type |
Definition at line 97 of file triangular.hpp.
typedef vector<T, A> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::vector_temporary_type |
Definition at line 98 of file triangular.hpp.
typedef matrix<T, L, A> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::matrix_temporary_type |
Definition at line 99 of file triangular.hpp.
typedef packed_tag boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::storage_category |
Definition at line 100 of file triangular.hpp.
typedef L::orientation_category boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::orientation_category |
Definition at line 101 of file triangular.hpp.
typedef reverse_iterator_base1<const_iterator1> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::const_reverse_iterator1 |
Definition at line 303 of file triangular.hpp.
typedef reverse_iterator_base1<iterator1> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::reverse_iterator1 |
Definition at line 306 of file triangular.hpp.
typedef reverse_iterator_base2<const_iterator2> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::const_reverse_iterator2 |
Definition at line 307 of file triangular.hpp.
typedef reverse_iterator_base2<iterator2> boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::reverse_iterator2 |
Definition at line 308 of file triangular.hpp.
typedef triangular_matrix< T, TRI, L, A > boost::numeric::ublas::matrix_container< triangular_matrix< T, TRI, L, A > >::container_type [inherited] |
Definition at line 488 of file expression_types.hpp.
typedef matrix_tag boost::numeric::ublas::matrix_container< triangular_matrix< T, TRI, L, A > >::type_category [inherited] |
Reimplemented from boost::numeric::ublas::matrix_expression< triangular_matrix< T, TRI, L, A > >.
Definition at line 489 of file expression_types.hpp.
typedef triangular_matrix< T, TRI, L, A > boost::numeric::ublas::matrix_expression< triangular_matrix< T, TRI, L, A > >::expression_type [inherited] |
Reimplemented from boost::numeric::ublas::ublas_expression< triangular_matrix< T, TRI, L, A > >.
Definition at line 313 of file expression_types.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::triangular_matrix | ( | ) | [inline] |
Definition at line 105 of file triangular.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::triangular_matrix | ( | size_type | size1, |
size_type | size2 | ||
) | [inline] |
Definition at line 109 of file triangular.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::triangular_matrix | ( | size_type | size1, |
size_type | size2, | ||
const array_type & | data | ||
) | [inline] |
Definition at line 114 of file triangular.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::triangular_matrix | ( | const triangular_matrix< T, TRI, L, A > & | m | ) | [inline] |
Definition at line 118 of file triangular.hpp.
BOOST_UBLAS_INLINE boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::triangular_matrix | ( | const matrix_expression< AE > & | ae | ) | [inline] |
Definition at line 123 of file triangular.hpp.
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::size1 | ( | ) | const [inline] |
Definition at line 132 of file triangular.hpp.
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::size2 | ( | ) | const [inline] |
Definition at line 136 of file triangular.hpp.
BOOST_UBLAS_INLINE const array_type& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::data | ( | ) | const [inline] |
Definition at line 142 of file triangular.hpp.
BOOST_UBLAS_INLINE array_type& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::data | ( | ) | [inline] |
Definition at line 146 of file triangular.hpp.
BOOST_UBLAS_INLINE void boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::resize | ( | size_type | size1, |
size_type | size2, | ||
bool | preserve = true |
||
) | [inline] |
Definition at line 152 of file triangular.hpp.
BOOST_UBLAS_INLINE void boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::resize_packed_preserve | ( | size_type | size1, |
size_type | size2 | ||
) | [inline] |
Definition at line 164 of file triangular.hpp.
BOOST_UBLAS_INLINE const_reference boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::operator() | ( | size_type | i, |
size_type | j | ||
) | const [inline] |
Definition at line 172 of file triangular.hpp.
BOOST_UBLAS_INLINE reference boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::at_element | ( | size_type | i, |
size_type | j | ||
) | [inline] |
Definition at line 183 of file triangular.hpp.
BOOST_UBLAS_INLINE reference boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::operator() | ( | size_type | i, |
size_type | j | ||
) | [inline] |
Definition at line 189 of file triangular.hpp.
BOOST_UBLAS_INLINE reference boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::insert_element | ( | size_type | i, |
size_type | j, | ||
const_reference | t | ||
) | [inline] |
Definition at line 201 of file triangular.hpp.
BOOST_UBLAS_INLINE void boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::erase_element | ( | size_type | i, |
size_type | j | ||
) | [inline] |
Definition at line 205 of file triangular.hpp.
BOOST_UBLAS_INLINE void boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::clear | ( | ) | [inline] |
Definition at line 211 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::operator= | ( | const triangular_matrix< T, TRI, L, A > & | m | ) | [inline] |
Definition at line 218 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::assign_temporary | ( | triangular_matrix< T, TRI, L, A > & | m | ) | [inline] |
Definition at line 225 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::operator= | ( | const matrix_expression< AE > & | ae | ) | [inline] |
Definition at line 231 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::assign | ( | const matrix_expression< AE > & | ae | ) | [inline] |
Definition at line 237 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::operator+= | ( | const matrix_expression< AE > & | ae | ) | [inline] |
Definition at line 243 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::plus_assign | ( | const matrix_expression< AE > & | ae | ) | [inline] |
Definition at line 249 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::operator-= | ( | const matrix_expression< AE > & | ae | ) | [inline] |
Definition at line 255 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::minus_assign | ( | const matrix_expression< AE > & | ae | ) | [inline] |
Definition at line 261 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::operator*= | ( | const AT & | at | ) | [inline] |
Definition at line 267 of file triangular.hpp.
BOOST_UBLAS_INLINE triangular_matrix& boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::operator/= | ( | const AT & | at | ) | [inline] |
Definition at line 273 of file triangular.hpp.
BOOST_UBLAS_INLINE void boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::swap | ( | triangular_matrix< T, TRI, L, A > & | m | ) | [inline] |
Definition at line 280 of file triangular.hpp.
BOOST_UBLAS_INLINE const_iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::find1 | ( | int | rank, |
size_type | i, | ||
size_type | j | ||
) | const [inline] |
Definition at line 312 of file triangular.hpp.
BOOST_UBLAS_INLINE iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::find1 | ( | int | rank, |
size_type | i, | ||
size_type | j | ||
) | [inline] |
Definition at line 320 of file triangular.hpp.
BOOST_UBLAS_INLINE const_iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::find2 | ( | int | rank, |
size_type | i, | ||
size_type | j | ||
) | const [inline] |
Definition at line 328 of file triangular.hpp.
BOOST_UBLAS_INLINE iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::find2 | ( | int | rank, |
size_type | i, | ||
size_type | j | ||
) | [inline] |
Definition at line 336 of file triangular.hpp.
BOOST_UBLAS_INLINE const_iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::begin1 | ( | ) | const [inline] |
Definition at line 480 of file triangular.hpp.
BOOST_UBLAS_INLINE const_iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::end1 | ( | ) | const [inline] |
Definition at line 484 of file triangular.hpp.
BOOST_UBLAS_INLINE iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::begin1 | ( | ) | [inline] |
Definition at line 621 of file triangular.hpp.
BOOST_UBLAS_INLINE iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::end1 | ( | ) | [inline] |
Definition at line 625 of file triangular.hpp.
BOOST_UBLAS_INLINE const_iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::begin2 | ( | ) | const [inline] |
Definition at line 763 of file triangular.hpp.
BOOST_UBLAS_INLINE const_iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::end2 | ( | ) | const [inline] |
Definition at line 767 of file triangular.hpp.
BOOST_UBLAS_INLINE iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::begin2 | ( | ) | [inline] |
Definition at line 904 of file triangular.hpp.
BOOST_UBLAS_INLINE iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::end2 | ( | ) | [inline] |
Definition at line 908 of file triangular.hpp.
BOOST_UBLAS_INLINE const_reverse_iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::rbegin1 | ( | ) | const [inline] |
Definition at line 915 of file triangular.hpp.
BOOST_UBLAS_INLINE const_reverse_iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::rend1 | ( | ) | const [inline] |
Definition at line 919 of file triangular.hpp.
BOOST_UBLAS_INLINE reverse_iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::rbegin1 | ( | ) | [inline] |
Definition at line 924 of file triangular.hpp.
BOOST_UBLAS_INLINE reverse_iterator1 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::rend1 | ( | ) | [inline] |
Definition at line 928 of file triangular.hpp.
BOOST_UBLAS_INLINE const_reverse_iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::rbegin2 | ( | ) | const [inline] |
Definition at line 933 of file triangular.hpp.
BOOST_UBLAS_INLINE const_reverse_iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::rend2 | ( | ) | const [inline] |
Definition at line 937 of file triangular.hpp.
BOOST_UBLAS_INLINE reverse_iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::rbegin2 | ( | ) | [inline] |
Definition at line 942 of file triangular.hpp.
BOOST_UBLAS_INLINE reverse_iterator2 boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::rend2 | ( | ) | [inline] |
Definition at line 946 of file triangular.hpp.
BOOST_UBLAS_INLINE const container_type& boost::numeric::ublas::matrix_container< triangular_matrix< T, TRI, L, A > >::operator() | ( | ) | const [inline, inherited] |
Reimplemented from boost::numeric::ublas::matrix_expression< triangular_matrix< T, TRI, L, A > >.
Definition at line 492 of file expression_types.hpp.
BOOST_UBLAS_INLINE container_type& boost::numeric::ublas::matrix_container< triangular_matrix< T, TRI, L, A > >::operator() | ( | ) | [inline, inherited] |
Reimplemented from boost::numeric::ublas::matrix_expression< triangular_matrix< T, TRI, L, A > >.
Definition at line 496 of file expression_types.hpp.
BOOST_UBLAS_INLINE friend void swap | ( | triangular_matrix< T, TRI, L, A > & | m1, |
triangular_matrix< T, TRI, L, A > & | m2 | ||
) | [friend] |
Definition at line 289 of file triangular.hpp.
size_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::size1_ [private] |
Definition at line 951 of file triangular.hpp.
size_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::size2_ [private] |
Definition at line 952 of file triangular.hpp.
array_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::data_ [private] |
Definition at line 953 of file triangular.hpp.
const triangular_matrix< T, TRI, L, A >::value_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::zero_ = value_type() [static, private] |
Definition at line 954 of file triangular.hpp.
const triangular_matrix< T, TRI, L, A >::value_type boost::numeric::ublas::triangular_matrix< T, TRI, L, A >::one_ [static, private] |
Definition at line 955 of file triangular.hpp.
const unsigned boost::numeric::ublas::matrix_container< triangular_matrix< T, TRI, L, A > >::complexity [static, inherited] |
Reimplemented from boost::numeric::ublas::matrix_expression< triangular_matrix< T, TRI, L, A > >.
Definition at line 487 of file expression_types.hpp.