Base class for triangular part in a matrix. More...
#include <TriangularMatrix.h>
Public Types | |
enum | |
enum | { Mode, TransposeMode } |
typedef TriangularBase < TriangularView > | Base |
typedef internal::traits < TriangularView > ::DenseMatrixType | DenseMatrixType |
typedef DenseMatrixType | DenseType |
typedef internal::traits < TriangularView >::Index | Index |
typedef _MatrixType | MatrixType |
typedef DenseMatrixType | PlainObject |
typedef internal::traits < TriangularView >::Scalar | Scalar |
typedef internal::traits < TriangularView > ::StorageKind | StorageKind |
Public Member Functions | |
void | addTo (Dest &dst) const |
const TriangularView< const typename MatrixType::AdjointReturnType, TransposeMode > | adjoint () const |
void | applyThisOnTheLeft (Dest &dst) const |
void | applyThisOnTheRight (Dest &dst) const |
template<typename ProductDerived , typename _Lhs , typename _Rhs > | |
TriangularView< MatrixType, UpLo > & | assignProduct (const ProductBase< ProductDerived, _Lhs, _Rhs > &prod, const Scalar &alpha) |
Scalar | coeff (Index row, Index col) const |
Scalar | coeff (Index row, Index col) const |
Scalar & | coeffRef (Index row, Index col) |
Scalar & | coeffRef (Index row, Index col) |
Index | cols () const |
TriangularView < MatrixConjugateReturnType, Mode > | conjugate () |
const TriangularView < MatrixConjugateReturnType, Mode > | conjugate () const |
TriangularView< _MatrixType, _Mode > & | const_cast_derived () const |
const TriangularView < _MatrixType, _Mode > & | const_derived () const |
void | copyCoeff (Index row, Index col, Other &other) |
TriangularView< _MatrixType, _Mode > & | derived () |
const TriangularView < _MatrixType, _Mode > & | derived () const |
Scalar | determinant () const |
void | evalTo (Dest &dst) const |
void | evalTo (MatrixBase< DenseDerived > &other) const |
void | evalToLazy (MatrixBase< DenseDerived > &other) const |
void | fill (const Scalar &value) |
Index | innerStride () const |
template<typename OtherDerived > | |
void | lazyAssign (const TriangularBase< OtherDerived > &other) |
template<typename OtherDerived > | |
void | lazyAssign (const MatrixBase< OtherDerived > &other) |
const MatrixTypeNestedCleaned & | nestedExpression () const |
MatrixTypeNestedCleaned & | nestedExpression () |
Scalar | operator() (Index row, Index col) const |
Scalar & | operator() (Index row, Index col) |
template<typename OtherDerived > | |
TriangularProduct< Mode, true, MatrixType, false, OtherDerived, OtherDerived::IsVectorAtCompileTime > | operator* (const MatrixBase< OtherDerived > &rhs) const |
TriangularView & | operator*= (const typename internal::traits< MatrixType >::Scalar &other) |
template<typename Other > | |
TriangularView & | operator+= (const DenseBase< Other > &other) |
template<typename ProductDerived , typename Lhs , typename Rhs > | |
TriangularView & | operator+= (const ProductBase< ProductDerived, Lhs, Rhs > &other) |
template<typename ProductDerived > | |
TriangularView & | operator+= (const ScaledProduct< ProductDerived > &other) |
template<typename Other > | |
TriangularView & | operator-= (const DenseBase< Other > &other) |
template<typename ProductDerived , typename Lhs , typename Rhs > | |
TriangularView & | operator-= (const ProductBase< ProductDerived, Lhs, Rhs > &other) |
template<typename ProductDerived > | |
TriangularView & | operator-= (const ScaledProduct< ProductDerived > &other) |
TriangularView & | operator/= (const typename internal::traits< MatrixType >::Scalar &other) |
template<typename OtherDerived > | |
TriangularView & | operator= (const TriangularBase< OtherDerived > &other) |
template<typename OtherDerived > | |
TriangularView & | operator= (const MatrixBase< OtherDerived > &other) |
TriangularView & | operator= (const TriangularView &other) |
template<typename ProductDerived , typename Lhs , typename Rhs > | |
TriangularView & | operator= (const ProductBase< ProductDerived, Lhs, Rhs > &other) |
template<typename ProductDerived > | |
TriangularView & | operator= (const ScaledProduct< ProductDerived > &other) |
Index | outerStride () const |
Index | rows () const |
const SelfAdjointView < MatrixTypeNestedNonRef, Mode > | selfadjointView () const |
SelfAdjointView < MatrixTypeNestedNonRef, Mode > | selfadjointView () |
TriangularView & | setConstant (const Scalar &value) |
TriangularView & | setOnes () |
TriangularView & | setZero () |
Index | size () const |
template<int Side, typename Other > | |
const internal::triangular_solve_retval < Side, TriangularView, Other > | solve (const MatrixBase< Other > &other) const |
template<typename Other > | |
const internal::triangular_solve_retval < OnTheLeft, TriangularView, Other > | solve (const MatrixBase< Other > &other) const |
template<int Side, typename OtherDerived > | |
void | solveInPlace (const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
void | solveInPlace (const MatrixBase< OtherDerived > &other) const |
void | subTo (Dest &dst) const |
template<typename OtherDerived > | |
void | swap (TriangularBase< OtherDerived > const &other) |
template<typename OtherDerived > | |
void | swap (MatrixBase< OtherDerived > const &other) |
DenseMatrixType | toDenseMatrix () const |
TriangularView< Transpose < MatrixType >, TransposeMode > | transpose () |
const TriangularView < Transpose< MatrixType > , TransposeMode > | transpose () const |
TriangularView (const MatrixType &matrix) |
Protected Types | |
typedef internal::remove_all < typename MatrixType::ConjugateReturnType > ::type | MatrixConjugateReturnType |
typedef internal::traits < TriangularView > ::MatrixTypeNested | MatrixTypeNested |
typedef internal::traits < TriangularView > ::MatrixTypeNestedCleaned | MatrixTypeNestedCleaned |
typedef internal::traits < TriangularView > ::MatrixTypeNestedNonRef | MatrixTypeNestedNonRef |
Protected Member Functions | |
template<typename ProductDerived , typename Lhs , typename Rhs > | |
TriangularView & | assignProduct (const ProductBase< ProductDerived, Lhs, Rhs > &prod, const Scalar &alpha) |
void | check_coordinates (Index row, Index col) const |
void | check_coordinates_internal (Index, Index) const |
Protected Attributes | |
MatrixTypeNested | m_matrix |
Friends | |
template<typename OtherDerived > | |
TriangularProduct< Mode, false, OtherDerived, OtherDerived::IsVectorAtCompileTime, MatrixType, false > | operator* (const MatrixBase< OtherDerived > &lhs, const TriangularView &rhs) |
Base class for triangular part in a matrix.
MatrixType | the type of the object in which we are taking the triangular part |
Mode | the kind of triangular matrix expression to construct. Can be Upper, Lower, UnitUpper, UnitLower, StrictlyUpper, or StrictlyLower. This is in fact a bit field; it must have either Upper or Lower, and additionnaly it may have UnitDiag or ZeroDiag or neither. |
This class represents a triangular part of a matrix, not necessarily square. Strictly speaking, for rectangular matrices one should speak of "trapezoid" parts. This class is the return type of MatrixBase::triangularView() and most of the time this is the only way it is used.
typedef TriangularBase<TriangularView> Base |
typedef internal::traits<TriangularView>::DenseMatrixType DenseMatrixType |
Reimplemented from TriangularBase< TriangularView< _MatrixType, _Mode > >.
|
inherited |
typedef internal::traits<TriangularView>::Index Index |
Reimplemented from TriangularBase< TriangularView< _MatrixType, _Mode > >.
|
protected |
typedef _MatrixType MatrixType |
|
protected |
|
protected |
|
protected |
typedef DenseMatrixType PlainObject |
typedef internal::traits<TriangularView>::Scalar Scalar |
Reimplemented from TriangularBase< TriangularView< _MatrixType, _Mode > >.
typedef internal::traits<TriangularView>::StorageKind StorageKind |
Reimplemented from TriangularBase< TriangularView< _MatrixType, _Mode > >.
|
inherited |
|
inline |
|
inlineinherited |
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
Referenced by Eigen::internal::apply_block_householder_on_the_left().
|
inlineinherited |
|
inlineinherited |
TriangularView<MatrixType,UpLo>& assignProduct | ( | const ProductBase< ProductDerived, _Lhs, _Rhs > & | prod, |
const Scalar & | alpha | ||
) |
|
inlineprotected |
References TriangularBase< Derived >::check_coordinates_internal(), and TriangularView< _MatrixType, _Mode >::m_matrix.
References TriangularBase< Derived >::check_coordinates_internal(), and TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
Reimplemented from TriangularBase< TriangularView< _MatrixType, _Mode > >.
References TriangularView< _MatrixType, _Mode >::m_matrix.
Referenced by TriangularView< _MatrixType, _Mode >::setConstant().
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inherited |
Assigns a triangular or selfadjoint matrix to a dense matrix. If the matrix is triangular, the opposite part is set to zero.
|
inherited |
Assigns a triangular or selfadjoint matrix to a dense matrix. If the matrix is triangular, the opposite part is set to zero.
|
inline |
References TriangularView< _MatrixType, _Mode >::setConstant().
|
inline |
Reimplemented from TriangularBase< TriangularView< _MatrixType, _Mode > >.
References TriangularView< _MatrixType, _Mode >::m_matrix.
void lazyAssign | ( | const TriangularBase< OtherDerived > & | other | ) |
void lazyAssign | ( | const MatrixBase< OtherDerived > & | other | ) |
References Eigen::Dynamic, eigen_assert, and EIGEN_UNROLLING_LIMIT.
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
Referenced by TriangularView< _MatrixType, _Mode >::operator=().
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
Efficient triangular matrix times vector/matrix product
References TriangularView< _MatrixType, _Mode >::m_matrix, and TriangularView< _MatrixType, _Mode >::Mode.
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
|
inline |
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
|
inline |
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
Assigns a triangular matrix to a triangular part of a dense matrix
References TriangularBase< Derived >::cols(), EigenBase< Derived >::derived(), eigen_assert, Eigen::EvalBeforeAssigningBit, and TriangularBase< Derived >::rows().
|
inline |
References Eigen::EvalBeforeAssigningBit.
|
inline |
|
inline |
|
inline |
|
inline |
Reimplemented from TriangularBase< TriangularView< _MatrixType, _Mode > >.
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
Reimplemented from TriangularBase< TriangularView< _MatrixType, _Mode > >.
References TriangularView< _MatrixType, _Mode >::m_matrix.
Referenced by TriangularView< _MatrixType, _Mode >::setConstant().
|
inline |
|
inline |
|
inline |
References TriangularView< _MatrixType, _Mode >::cols(), and TriangularView< _MatrixType, _Mode >::rows().
Referenced by TriangularView< _MatrixType, _Mode >::fill(), TriangularView< _MatrixType, _Mode >::setOnes(), and TriangularView< _MatrixType, _Mode >::setZero().
|
inline |
References TriangularView< _MatrixType, _Mode >::setConstant().
|
inline |
References TriangularView< _MatrixType, _Mode >::setConstant().
Referenced by TriangularView< _MatrixType, _Mode >::operator=().
|
inlineinherited |
|
inline |
*this
with other, *this being triangular.This function computes the inverse-matrix matrix product inverse(*this
) * other if Side==OnTheLeft (the default), or the right-inverse-multiply other * inverse(*this
) if Side==OnTheRight.
The matrix *this
must be triangular and invertible (i.e., all the coefficients of the diagonal must be non zero). It works as a forward (resp. backward) substitution if *this
is an upper (resp. lower) triangular matrix.
Example:
Output:
This function returns an expression of the inverse-multiply and can works in-place if it is assigned to the same matrix or vector other.
For users coming from BLAS, this function (and more specifically solveInPlace()) offer all the operations supported by the *TRSV
and *TRSM
BLAS routines.
|
inline |
void solveInPlace | ( | const MatrixBase< OtherDerived > & | _other | ) | const |
"in-place" version of TriangularView::solve() where the result is written in other
See TriangularView:solve() for the details.
References eigen_assert, Eigen::Lower, Eigen::OnTheLeft, Eigen::OnTheRight, Eigen::Upper, and Eigen::ZeroDiag.
|
inline |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inline |
References EIGEN_STATIC_ASSERT_LVALUE, and TriangularView< _MatrixType, _Mode >::m_matrix.
|
inline |
References TriangularView< _MatrixType, _Mode >::m_matrix.
|
friend |
Efficient vector/matrix times triangular matrix product
|
protected |
Referenced by TriangularView< _MatrixType, _Mode >::adjoint(), TriangularView< _MatrixType, _Mode >::coeff(), TriangularView< _MatrixType, _Mode >::coeffRef(), TriangularView< _MatrixType, _Mode >::cols(), TriangularView< _MatrixType, _Mode >::conjugate(), TriangularView< _MatrixType, _Mode >::determinant(), TriangularView< _MatrixType, _Mode >::innerStride(), TriangularView< _MatrixType, _Mode >::nestedExpression(), TriangularView< _MatrixType, _Mode >::operator*(), TriangularView< _MatrixType, _Mode >::operator*=(), TriangularView< _MatrixType, _Mode >::operator+=(), TriangularView< _MatrixType, _Mode >::operator-=(), TriangularView< _MatrixType, _Mode >::operator/=(), TriangularView< _MatrixType, _Mode >::outerStride(), TriangularView< _MatrixType, _Mode >::rows(), TriangularView< _MatrixType, _Mode >::selfadjointView(), TriangularView< _MatrixType, _Mode >::swap(), and TriangularView< _MatrixType, _Mode >::transpose().