10#ifndef EIGEN_SELFADJOINTMATRIX_H
11#define EIGEN_SELFADJOINTMATRIX_H
32template<
typename MatrixType,
unsigned int UpLo>
42 Flags = MatrixTypeNestedCleaned::Flags & (
HereditaryBits|FlagsLvalueBit)
119 template<
typename OtherDerived>
128 template<
typename OtherDerived>
friend
153 template<
typename DerivedU,
typename DerivedV>
167 template<
typename DerivedU>
181 template<
unsigned int TriMode>
210 return ReturnType(
m_matrix.template conjugateIf<Cond>());
225 typename MatrixType::TransposeReturnType tmp(
m_matrix);
243 typename MatrixType::ConstDiagonalReturnType
diagonal()
const
245 return typename MatrixType::ConstDiagonalReturnType(
m_matrix);
284template<
typename MatrixType,
unsigned int Mode>
291template<
int UpLo,
int SetOpposite,
typename DstEvaluatorTypeT,
typename SrcEvaluatorTypeT,
typename Functor,
int Version>
311 :
Base(dst, src, func, dstExpr)
338template<
typename Derived>
339template<
unsigned int UpLo>
355template<
typename Derived>
356template<
unsigned int UpLo>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ColXpr col(Index i)
This is the const version of col().
Definition: BlockMethods.h:1097
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE RowXpr row(Index i)
This is the const version of row(). */.
Definition: BlockMethods.h:1118
#define eigen_internal_assert(x)
Definition: Macros.h:1053
#define EIGEN_NOEXCEPT
Definition: Macros.h:1428
#define EIGEN_CONSTEXPR
Definition: Macros.h:797
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:986
#define EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(SCALAR, EXPR, OPNAME)
Definition: Macros.h:1361
#define EIGEN_STATIC_ASSERT_LVALUE(Derived)
Definition: StaticAssert.h:202
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
Robust Cholesky decomposition of a matrix with pivoting.
Definition: LDLT.h:61
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition: LLT.h:68
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:50
EIGEN_DEVICE_FUNC SelfAdjointViewReturnType< UpLo >::Type selfadjointView()
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:180
Expression of the product of two arbitrary matrices or vectors.
Definition: Product.h:75
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
Definition: SelfAdjointView.h:51
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: SelfAdjointView.h:82
SelfAdjointView< typename internal::add_const< MatrixType >::type, UpLo > ConstSelfAdjointView
Definition: SelfAdjointView.h:64
friend EIGEN_DEVICE_FUNC const Product< OtherDerived, SelfAdjointView > operator*(const MatrixBase< OtherDerived > &lhs, const SelfAdjointView &rhs)
Efficient vector/matrix times triangular matrix product.
Definition: SelfAdjointView.h:131
EIGEN_DEVICE_FUNC internal::conditional<(TriMode &(Upper|Lower))==(UpLo &(Upper|Lower)), TriangularView< MatrixType, TriMode >, TriangularView< typenameMatrixType::AdjointReturnType, TriMode > >::type triangularView() const
Definition: SelfAdjointView.h:186
EIGEN_DEVICE_FUNC SelfAdjointView & 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: .
internal::remove_all< typenameMatrixType::ConjugateReturnType >::type MatrixConjugateReturnType
Definition: SelfAdjointView.h:63
friend EIGEN_DEVICE_FUNC const SelfAdjointView< const EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(Scalar, MatrixType, product), UpLo > operator*(const Scalar &s, const SelfAdjointView &mat)
Definition: SelfAdjointView.h:138
TriangularBase< SelfAdjointView > Base
Definition: SelfAdjointView.h:55
EIGEN_DEVICE_FUNC const AdjointReturnType adjoint() const
Definition: SelfAdjointView.h:216
EIGEN_DEVICE_FUNC SelfAdjointView & rankUpdate(const MatrixBase< DerivedU > &u, const Scalar &alpha=Scalar(1))
Perform a symmetric rank K update of the selfadjoint matrix *this: where u is a vector or matrix.
const LLT< PlainObject, UpLo > llt() const
\cholesky_module
Definition: LLT.h:551
EIGEN_DEVICE_FUNC SelfAdjointView(MatrixType &matrix)
Definition: SelfAdjointView.h:74
internal::traits< SelfAdjointView >::MatrixTypeNestedCleaned MatrixTypeNestedCleaned
Definition: SelfAdjointView.h:57
MatrixType::StorageIndex StorageIndex
Definition: SelfAdjointView.h:62
EIGEN_DEVICE_FUNC const Product< SelfAdjointView, OtherDerived > operator*(const MatrixBase< OtherDerived > &rhs) const
Efficient triangular matrix times vector/matrix product.
Definition: SelfAdjointView.h:122
const LDLT< PlainObject, UpLo > ldlt() const
\cholesky_module
Definition: LDLT.h:670
EIGEN_DEVICE_FUNC RealScalar operatorNorm() const
Computes the L2 operator norm.
Definition: MatrixBaseEigenvalues.h:151
EIGEN_DEVICE_FUNC EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
Definition: MatrixBaseEigenvalues.h:88
EIGEN_DEVICE_FUNC MatrixTypeNestedCleaned & nestedExpression()
Definition: SelfAdjointView.h:116
SelfAdjointView< const typename MatrixType::ConstTransposeReturnType, TransposeMode > ConstTransposeReturnType
Definition: SelfAdjointView.h:229
internal::traits< SelfAdjointView >::MatrixTypeNested MatrixTypeNested
Definition: SelfAdjointView.h:56
Matrix< RealScalar, internal::traits< MatrixType >::ColsAtCompileTime, 1 > EigenvaluesReturnType
Return type of eigenvalues()
Definition: SelfAdjointView.h:258
SelfAdjointView< typename MatrixType::TransposeReturnType, TransposeMode > TransposeReturnType
Definition: SelfAdjointView.h:219
_MatrixType MatrixType
Definition: SelfAdjointView.h:54
EIGEN_DEVICE_FUNC const ConstTransposeReturnType transpose() const
Definition: SelfAdjointView.h:232
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index outerStride() const EIGEN_NOEXCEPT
Definition: SelfAdjointView.h:84
SelfAdjointView< const MatrixConjugateReturnType, UpLo > ConjugateReturnType
Definition: SelfAdjointView.h:195
SelfAdjointView< const typename MatrixType::AdjointReturnType, TransposeMode > AdjointReturnType
Definition: SelfAdjointView.h:213
MatrixTypeNestedCleaned NestedExpression
Definition: SelfAdjointView.h:58
@ TransposeMode
Definition: SelfAdjointView.h:69
@ Flags
Definition: SelfAdjointView.h:68
@ Mode
Definition: SelfAdjointView.h:67
EIGEN_DEVICE_FUNC Scalar & coeffRef(Index row, Index col)
Definition: SelfAdjointView.h:102
MatrixTypeNested m_matrix
Definition: SelfAdjointView.h:266
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: SelfAdjointView.h:80
EIGEN_DEVICE_FUNC internal::conditional< Cond, ConjugateReturnType, ConstSelfAdjointView >::type conjugateIf() const
Definition: SelfAdjointView.h:207
EIGEN_DEVICE_FUNC const MatrixTypeNestedCleaned & nestedExpression() const
Definition: SelfAdjointView.h:114
EIGEN_DEVICE_FUNC TransposeReturnType transpose()
Definition: SelfAdjointView.h:222
EIGEN_DEVICE_FUNC MatrixType::ConstDiagonalReturnType diagonal() const
Definition: SelfAdjointView.h:243
EIGEN_DEVICE_FUNC Scalar coeff(Index row, Index col) const
Definition: SelfAdjointView.h:92
EIGEN_DEVICE_FUNC const MatrixTypeNestedCleaned & _expression() const
Definition: SelfAdjointView.h:111
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index innerStride() const EIGEN_NOEXCEPT
Definition: SelfAdjointView.h:86
EIGEN_DEVICE_FUNC const ConjugateReturnType conjugate() const
Definition: SelfAdjointView.h:198
MatrixType::PlainObject PlainObject
Definition: SelfAdjointView.h:71
internal::traits< SelfAdjointView >::Scalar Scalar
The type of coefficients in this matrix.
Definition: SelfAdjointView.h:61
NumTraits< Scalar >::Real RealScalar
Real part of Scalar.
Definition: SelfAdjointView.h:256
Base class for triangular part in a matrix.
Definition: TriangularMatrix.h:28
void check_coordinates_internal(Index, Index) const
Definition: TriangularMatrix.h:146
Expression of a triangular part in a matrix.
Definition: TriangularMatrix.h:189
Definition: AssignEvaluator.h:619
const SrcEvaluatorType & m_src
Definition: AssignEvaluator.h:717
DstEvaluatorTypeT DstEvaluatorType
Definition: AssignEvaluator.h:625
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void assignCoeff(Index row, Index col)
Assign src(row,col) to dst(row,col) through the assignment functor.
Definition: AssignEvaluator.h:652
SrcEvaluatorTypeT SrcEvaluatorType
Definition: AssignEvaluator.h:626
DstEvaluatorType & m_dst
Definition: AssignEvaluator.h:716
const Functor & m_functor
Definition: AssignEvaluator.h:718
SrcEvaluatorTypeT::XprType SrcXprType
Definition: AssignEvaluator.h:622
DstEvaluatorTypeT::XprType DstXprType
Definition: AssignEvaluator.h:621
DstEvaluatorType::Scalar Scalar
Definition: AssignEvaluator.h:627
Base::SrcXprType SrcXprType
Definition: SelfAdjointView.h:298
EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id)
Definition: SelfAdjointView.h:322
EIGEN_DEVICE_FUNC void assignOppositeCoeff(Index, Index)
Definition: SelfAdjointView.h:327
Base::AssignmentTraits AssignmentTraits
Definition: SelfAdjointView.h:307
Base::SrcEvaluatorType SrcEvaluatorType
Definition: SelfAdjointView.h:305
EIGEN_DEVICE_FUNC triangular_dense_assignment_kernel(DstEvaluatorType &dst, const SrcEvaluatorType &src, const Functor &func, DstXprType &dstExpr)
Definition: SelfAdjointView.h:310
Base::DstEvaluatorType DstEvaluatorType
Definition: SelfAdjointView.h:304
Base::Scalar Scalar
Definition: SelfAdjointView.h:306
generic_dense_assignment_kernel< DstEvaluatorTypeT, SrcEvaluatorTypeT, Functor, Version > Base
Definition: SelfAdjointView.h:296
EIGEN_DEVICE_FUNC void assignCoeff(Index row, Index col)
Definition: SelfAdjointView.h:314
Base::DstXprType DstXprType
Definition: SelfAdjointView.h:297
Definition: TriangularMatrix.h:755
type
Definition: core.h:575
@ SelfAdjoint
Used in BandMatrix and SelfAdjointView to indicate that the matrix is self-adjoint.
Definition: Constants.h:225
@ Lower
View matrix as a lower triangular matrix.
Definition: Constants.h:209
@ Upper
View matrix as an upper triangular matrix.
Definition: Constants.h:211
const unsigned int PacketAccessBit
Short version: means the expression might be vectorized.
Definition: Constants.h:94
const unsigned int LinearAccessBit
Short version: means the expression can be seen as 1D vector.
Definition: Constants.h:130
const unsigned int DirectAccessBit
Means that the underlying array of coefficients can be directly accessed as a plain strided array.
Definition: Constants.h:155
const unsigned int LvalueBit
Means the expression has a coeffRef() method, i.e.
Definition: Constants.h:144
Type
Definition: Constants.h:471
Namespace containing all symbols from the Eigen library.
Definition: Core:141
const unsigned int HereditaryBits
Definition: Constants.h:195
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Definition: Eigen_Colamd.h:50
Eigen::Index Index
The interface type of indices.
Definition: EigenBase.h:39
Holds information about the various numeric (i.e.
Definition: NumTraits.h:233
Definition: Constants.h:534
Definition: Constants.h:542
Definition: AssignEvaluator.h:29
SelfAdjointShape Shape
Definition: SelfAdjointView.h:288
storage_kind_to_evaluator_kind< typenameMatrixType::StorageKind >::Kind Kind
Definition: SelfAdjointView.h:287
Definition: CoreEvaluators.h:80
Definition: XprHelper.h:660
Definition: XprHelper.h:417
T type
Definition: Meta.h:126
MatrixType::PlainObject FullMatrixType
Definition: SelfAdjointView.h:38
ref_selector< MatrixType >::non_const_type MatrixTypeNested
Definition: SelfAdjointView.h:35
remove_all< MatrixTypeNested >::type MatrixTypeNestedCleaned
Definition: SelfAdjointView.h:36
MatrixType ExpressionType
Definition: SelfAdjointView.h:37
Definition: ForwardDeclarations.h:17