Expression of a selfadjoint matrix from a triangular part of a dense matrix. More...
Public Member Functions | |
const MatrixTypeNestedCleaned & | _expression () const |
const AdjointReturnType | adjoint () const |
Scalar | coeff (Index row, Index col) const |
Scalar & | coeffRef (Index row, Index col) |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
const ConjugateReturnType | conjugate () const |
template<bool Cond> | |
std::conditional_t< Cond, ConjugateReturnType, ConstSelfAdjointView > | conjugateIf () const |
MatrixType::ConstDiagonalReturnType | diagonal () const |
EigenvaluesReturnType | eigenvalues () const |
Computes the eigenvalues of a matrix. More... | |
EIGEN_CONSTEXPR Index | innerStride () const EIGEN_NOEXCEPT |
const LDLT< PlainObject, UpLo > | ldlt () const |
const LLT< PlainObject, UpLo > | llt () const |
MatrixTypeNestedCleaned & | nestedExpression () |
const MatrixTypeNestedCleaned & | nestedExpression () const |
template<typename OtherDerived > | |
const Product< SelfAdjointView, OtherDerived > | operator* (const MatrixBase< OtherDerived > &rhs) const |
RealScalar | operatorNorm () const |
Computes the L2 operator norm. More... | |
EIGEN_CONSTEXPR Index | outerStride () const EIGEN_NOEXCEPT |
template<typename DerivedU , typename DerivedV > | |
SelfAdjointView< MatrixType, UpLo > & | rankUpdate (const MatrixBase< DerivedU > &u, const MatrixBase< DerivedV > &v, const Scalar &alpha) |
template<typename DerivedU , typename DerivedV > | |
SelfAdjointView & | rankUpdate (const MatrixBase< DerivedU > &u, const MatrixBase< DerivedV > &v, const Scalar &alpha=Scalar(1)) |
template<typename DerivedU > | |
SelfAdjointView< MatrixType, UpLo > & | rankUpdate (const MatrixBase< DerivedU > &u, const Scalar &alpha) |
template<typename DerivedU > | |
SelfAdjointView & | rankUpdate (const MatrixBase< DerivedU > &u, const Scalar &alpha=Scalar(1)) |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
SelfAdjointView (MatrixType &matrix) | |
const ConstTransposeReturnType | transpose () const |
template<class Dummy = int> | |
TransposeReturnType | transpose (std::enable_if_t< Eigen::internal::is_lvalue< MatrixType >::value, Dummy * >=nullptr) |
template<unsigned int TriMode> | |
std::conditional_t<(TriMode &(Upper|Lower))==(UpLo &(Upper|Lower)), TriangularView< MatrixType, TriMode >, TriangularView< typename MatrixType::AdjointReturnType, TriMode > > | triangularView () const |
![]() | |
Scalar | coeff (Index row, Index col) const |
Scalar & | coeffRef (Index row, Index col) |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
void | copyCoeff (Index row, Index col, Other &other) |
void | evalTo (MatrixBase< DenseDerived > &other) const |
void | evalToLazy (MatrixBase< DenseDerived > &other) const |
EIGEN_CONSTEXPR Index | innerStride () const EIGEN_NOEXCEPT |
Scalar & | operator() (Index row, Index col) |
Scalar | operator() (Index row, Index col) const |
EIGEN_CONSTEXPR Index | outerStride () const EIGEN_NOEXCEPT |
void | resize (Index rows, Index cols) |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
DenseMatrixType | toDenseMatrix () const |
TriangularBase () | |
![]() | |
template<typename Dest > | |
void | addTo (Dest &dst) const |
template<typename Dest > | |
void | applyThisOnTheLeft (Dest &dst) const |
template<typename Dest > | |
void | applyThisOnTheRight (Dest &dst) const |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
Derived & | const_cast_derived () const |
const Derived & | const_derived () const |
Derived & | derived () |
const Derived & | derived () const |
template<typename Dest > | |
void | evalTo (Dest &dst) const |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
template<typename Dest > | |
void | subTo (Dest &dst) const |
Protected Attributes | |
MatrixTypeNested | m_matrix |
Additional Inherited Members | |
![]() | |
void | check_coordinates (Index row, Index col) const |
void | check_coordinates_internal (Index, Index) const |
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
MatrixType | the type of the dense matrix storing the coefficients |
TriangularPart | can be either Lower or Upper |
This class is an expression of a sefladjoint matrix from a triangular part of a matrix with given dense storage of the coefficients. It is the return type of MatrixBase::selfadjointView() and most of the time this is the only way that it is used.
Definition at line 51 of file SelfAdjointView.h.
typedef SelfAdjointView<const typename MatrixType::AdjointReturnType,TransposeMode> Eigen::SelfAdjointView< MatrixType_, UpLo >::AdjointReturnType |
Definition at line 213 of file SelfAdjointView.h.
typedef TriangularBase<SelfAdjointView> Eigen::SelfAdjointView< MatrixType_, UpLo >::Base |
Definition at line 58 of file SelfAdjointView.h.
typedef SelfAdjointView<const MatrixConjugateReturnType,UpLo> Eigen::SelfAdjointView< MatrixType_, UpLo >::ConjugateReturnType |
Definition at line 195 of file SelfAdjointView.h.
typedef SelfAdjointView<std::add_const_t<MatrixType>, UpLo> Eigen::SelfAdjointView< MatrixType_, UpLo >::ConstSelfAdjointView |
Definition at line 67 of file SelfAdjointView.h.
typedef SelfAdjointView<const typename MatrixType::ConstTransposeReturnType,TransposeMode> Eigen::SelfAdjointView< MatrixType_, UpLo >::ConstTransposeReturnType |
Definition at line 229 of file SelfAdjointView.h.
typedef Matrix<RealScalar, internal::traits<MatrixType>::ColsAtCompileTime, 1> Eigen::SelfAdjointView< MatrixType_, UpLo >::EigenvaluesReturnType |
Return type of eigenvalues()
Definition at line 258 of file SelfAdjointView.h.
typedef internal::remove_all_t<typename MatrixType::ConjugateReturnType> Eigen::SelfAdjointView< MatrixType_, UpLo >::MatrixConjugateReturnType |
Definition at line 66 of file SelfAdjointView.h.
typedef MatrixType_ Eigen::SelfAdjointView< MatrixType_, UpLo >::MatrixType |
Definition at line 57 of file SelfAdjointView.h.
typedef internal::traits<SelfAdjointView>::MatrixTypeNested Eigen::SelfAdjointView< MatrixType_, UpLo >::MatrixTypeNested |
Definition at line 59 of file SelfAdjointView.h.
typedef internal::traits<SelfAdjointView>::MatrixTypeNestedCleaned Eigen::SelfAdjointView< MatrixType_, UpLo >::MatrixTypeNestedCleaned |
Definition at line 60 of file SelfAdjointView.h.
typedef MatrixTypeNestedCleaned Eigen::SelfAdjointView< MatrixType_, UpLo >::NestedExpression |
Definition at line 61 of file SelfAdjointView.h.
typedef MatrixType::PlainObject Eigen::SelfAdjointView< MatrixType_, UpLo >::PlainObject |
Definition at line 74 of file SelfAdjointView.h.
typedef NumTraits<Scalar>::Real Eigen::SelfAdjointView< MatrixType_, UpLo >::RealScalar |
Real part of Scalar
Definition at line 256 of file SelfAdjointView.h.
typedef internal::traits<SelfAdjointView>::Scalar Eigen::SelfAdjointView< MatrixType_, UpLo >::Scalar |
The type of coefficients in this matrix.
Definition at line 64 of file SelfAdjointView.h.
typedef MatrixType::StorageIndex Eigen::SelfAdjointView< MatrixType_, UpLo >::StorageIndex |
Definition at line 65 of file SelfAdjointView.h.
typedef SelfAdjointView<typename MatrixType::TransposeReturnType,TransposeMode> Eigen::SelfAdjointView< MatrixType_, UpLo >::TransposeReturnType |
Definition at line 219 of file SelfAdjointView.h.
anonymous enum |
|
inlineexplicit |
Definition at line 77 of file SelfAdjointView.h.
|
inline |
Definition at line 111 of file SelfAdjointView.h.
|
inline |
Definition at line 216 of file SelfAdjointView.h.
|
inline |
Definition at line 92 of file SelfAdjointView.h.
|
inline |
Definition at line 102 of file SelfAdjointView.h.
|
inline |
Definition at line 82 of file SelfAdjointView.h.
|
inline |
Definition at line 198 of file SelfAdjointView.h.
|
inline |
*this
if Cond==true, returns *this
otherwise. Definition at line 207 of file SelfAdjointView.h.
|
inline |
*this
This method simply returns the diagonal of the nested expression, thus by-passing the SelfAdjointView decorator.
Definition at line 243 of file SelfAdjointView.h.
|
inline |
Computes the eigenvalues of a matrix.
This is defined in the Eigenvalues module.
This function computes the eigenvalues with the help of the SelfAdjointEigenSolver class. The eigenvalues are repeated according to their algebraic multiplicity, so there are as many eigenvalues as rows in the matrix.
Example:
Output:
The eigenvalues of the 3x3 matrix of ones are: -3.09e-16 0 3
Definition at line 90 of file MatrixBaseEigenvalues.h.
|
inline |
Definition at line 86 of file SelfAdjointView.h.
|
inline |
This is defined in the Cholesky module.
*this
Definition at line 667 of file LDLT.h.
|
inline |
This is defined in the Cholesky module.
*this
Definition at line 548 of file LLT.h.
|
inline |
Definition at line 116 of file SelfAdjointView.h.
|
inline |
Definition at line 114 of file SelfAdjointView.h.
|
inline |
Efficient triangular matrix times vector/matrix product
Definition at line 122 of file SelfAdjointView.h.
|
inline |
Computes the L2 operator norm.
This is defined in the Eigenvalues module.
This function computes the L2 operator norm of a self-adjoint matrix. For a self-adjoint matrix, the operator norm is the largest eigenvalue.
The current implementation uses the eigenvalues of the matrix, as computed by eigenvalues(), to compute the operator norm of the matrix.
Example:
Output:
The operator norm of the 3x3 matrix of ones is 3
Definition at line 153 of file MatrixBaseEigenvalues.h.
|
inline |
Definition at line 84 of file SelfAdjointView.h.
SelfAdjointView<MatrixType,UpLo>& Eigen::SelfAdjointView< MatrixType_, UpLo >::rankUpdate | ( | const MatrixBase< DerivedU > & | u, |
const MatrixBase< DerivedV > & | v, | ||
const Scalar & | alpha | ||
) |
Definition at line 63 of file SelfadjointRank2Update.h.
SelfAdjointView& Eigen::SelfAdjointView< MatrixType_, UpLo >::rankUpdate | ( | const MatrixBase< DerivedU > & | u, |
const MatrixBase< DerivedV > & | v, | ||
const Scalar & | alpha = Scalar(1) |
||
) |
Perform a symmetric rank 2 update of the selfadjoint matrix *this
:
*this
The vectors u and v
must be column vectors, however they can be a adjoint expression without any overhead. Only the meaningful triangular part of the matrix is updated, the rest is left unchanged.
SelfAdjointView<MatrixType,UpLo>& Eigen::SelfAdjointView< MatrixType_, UpLo >::rankUpdate | ( | const MatrixBase< DerivedU > & | u, |
const Scalar & | alpha | ||
) |
Definition at line 126 of file SelfadjointProduct.h.
SelfAdjointView& Eigen::SelfAdjointView< MatrixType_, UpLo >::rankUpdate | ( | const MatrixBase< DerivedU > & | u, |
const Scalar & | alpha = Scalar(1) |
||
) |
Perform a symmetric rank K update of the selfadjoint matrix *this
:
*this
Note that to perform
|
inline |
Definition at line 80 of file SelfAdjointView.h.
|
inline |
Definition at line 232 of file SelfAdjointView.h.
|
inline |
Definition at line 223 of file SelfAdjointView.h.
|
inline |
The parameter TriMode can have the following values: Upper
, StrictlyUpper
, UnitUpper
, Lower
, StrictlyLower
, UnitLower
.
If TriMode
references the same triangular part than *this
, then this method simply return a TriangularView
of the nested expression, otherwise, the nested expression is first transposed, thus returning a TriangularView<Transpose<MatrixType>>
object.
Definition at line 186 of file SelfAdjointView.h.
|
protected |
Definition at line 266 of file SelfAdjointView.h.