|
enum | {
Mode
,
Flags
,
TransposeMode
} |
|
typedef SelfAdjointView< const typename MatrixType::AdjointReturnType, TransposeMode > | AdjointReturnType |
|
typedef TriangularBase< SelfAdjointView > | Base |
|
typedef SelfAdjointView< const MatrixConjugateReturnType, UpLo > | ConjugateReturnType |
|
typedef SelfAdjointView< std::add_const_t< MatrixType >, UpLo > | ConstSelfAdjointView |
|
typedef SelfAdjointView< const typename MatrixType::ConstTransposeReturnType, TransposeMode > | ConstTransposeReturnType |
|
typedef Matrix< RealScalar, internal::traits< MatrixType >::ColsAtCompileTime, 1 > | EigenvaluesReturnType |
|
typedef internal::remove_all_t< typename MatrixType::ConjugateReturnType > | MatrixConjugateReturnType |
|
typedef MatrixType_ | MatrixType |
|
typedef internal::traits< SelfAdjointView >::MatrixTypeNested | MatrixTypeNested |
|
typedef internal::traits< SelfAdjointView >::MatrixTypeNestedCleaned | MatrixTypeNestedCleaned |
|
typedef MatrixTypeNestedCleaned | NestedExpression |
|
typedef MatrixType::PlainObject | PlainObject |
|
typedef NumTraits< Scalar >::Real | RealScalar |
|
typedef internal::traits< SelfAdjointView >::Scalar | Scalar |
| The type of coefficients in this matrix. More...
|
|
typedef MatrixType::StorageIndex | StorageIndex |
|
typedef SelfAdjointView< typename MatrixType::TransposeReturnType, TransposeMode > | TransposeReturnType |
|
enum | |
|
typedef internal::traits< SelfAdjointView< MatrixType_, UpLo > >::FullMatrixType | DenseMatrixType |
|
typedef DenseMatrixType | DenseType |
|
typedef SelfAdjointView< MatrixType_, UpLo > const & | Nested |
|
typedef internal::traits< SelfAdjointView< MatrixType_, UpLo > >::Scalar | Scalar |
|
typedef internal::traits< SelfAdjointView< MatrixType_, UpLo > >::StorageIndex | StorageIndex |
|
typedef internal::traits< SelfAdjointView< MatrixType_, UpLo > >::StorageKind | StorageKind |
|
typedef Eigen::Index | Index |
| The interface type of indices. More...
|
|
typedef internal::traits< Derived >::StorageKind | StorageKind |
|
|
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 |
|
template<typename MatrixType_, unsigned int UpLo>
class Eigen::SelfAdjointView< MatrixType_, UpLo >
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
- Template Parameters
-
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.
- See also
- class TriangularBase, MatrixBase::selfadjointView()
Definition at line 51 of file SelfAdjointView.h.
template<typename MatrixType , unsigned int UpLo>
Computes the L2 operator norm.
- Returns
- Operator norm of the matrix.
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:
cout << "The operator norm of the 3x3 matrix of ones is "
RealScalar operatorNorm() const
Computes the L2 operator norm.
Output:
The operator norm of the 3x3 matrix of ones is 3
- See also
- eigenvalues(), MatrixBase::operatorNorm()
Definition at line 153 of file MatrixBaseEigenvalues.h.
internal::traits< Derived >::Scalar maxCoeff() const
template<typename MatrixType_ , unsigned int UpLo>
template<typename DerivedU , typename DerivedV >
Perform a symmetric rank 2 update of the selfadjoint matrix *this
: \( this = this + \alpha u v^* + conj(\alpha) v u^* \)
- Returns
- a reference to
*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.
- See also
- rankUpdate(const MatrixBase<DerivedU>&, Scalar)
template<typename MatrixType_ , unsigned int UpLo>
template<unsigned int TriMode>
- Returns
- an expression of a triangular view extracted from the current selfadjoint view of a given triangular part
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.
- See also
- MatrixBase::triangularView(), class TriangularView
Definition at line 186 of file SelfAdjointView.h.
191 TriangularView<MatrixType,TriMode>,
192 TriangularView<typename MatrixType::AdjointReturnType,TriMode> >(tmp2);
Matrix< float, 1, Dynamic > MatrixType