10 #ifndef EIGEN_SELFADJOINTMATRIX_H 11 #define EIGEN_SELFADJOINTMATRIX_H 32 template<
typename MatrixType,
unsigned int UpLo>
77 inline Index rows()
const {
return m_matrix.rows(); }
79 inline Index cols()
const {
return m_matrix.cols(); }
91 Base::check_coordinates_internal(row, col);
92 return m_matrix.coeff(row, col);
102 Base::check_coordinates_internal(row, col);
103 return m_matrix.coeffRef(row, col);
108 const MatrixTypeNestedCleaned&
_expression()
const {
return m_matrix; }
116 template<
typename OtherDerived>
125 template<
typename OtherDerived>
friend 133 friend EIGEN_DEVICE_FUNC
150 template<
typename DerivedU,
typename DerivedV>
164 template<
typename DerivedU>
178 template<
unsigned int TriMode>
201 inline const AdjointReturnType
adjoint()
const 202 {
return AdjointReturnType(m_matrix.adjoint()); }
210 typename MatrixType::TransposeReturnType tmp(m_matrix);
211 return TransposeReturnType(tmp);
219 return ConstTransposeReturnType(m_matrix.transpose());
228 typename MatrixType::ConstDiagonalReturnType
diagonal()
const 230 return typename MatrixType::ConstDiagonalReturnType(m_matrix);
246 EigenvaluesReturnType eigenvalues()
const;
248 RealScalar operatorNorm()
const;
269 template<
typename MatrixType,
unsigned int Mode>
276 template<
int UpLo,
int SetOpposite,
typename DstEvaluatorTypeT,
typename SrcEvaluatorTypeT,
typename Functor,
int Version>
286 using Base::m_functor;
296 : Base(dst, src, func, dstExpr)
302 Scalar tmp = m_src.coeff(row,col);
303 m_functor.assignCoeff(m_dst.coeffRef(row,col), tmp);
304 m_functor.assignCoeff(m_dst.coeffRef(col,row),
numext::conj(tmp));
309 Base::assignCoeff(
id,
id);
323 template<
typename Derived>
324 template<
unsigned int UpLo>
340 template<
typename Derived>
341 template<
unsigned int UpLo>
350 #endif // EIGEN_SELFADJOINTMATRIX_H EIGEN_DEVICE_FUNC const Product< SelfAdjointView, OtherDerived > operator*(const MatrixBase< OtherDerived > &rhs) const
Robust Cholesky decomposition of a matrix with pivoting.
Matrix< RealScalar, internal::traits< MatrixType >::ColsAtCompileTime, 1 > EigenvaluesReturnType
friend EIGEN_DEVICE_FUNC const SelfAdjointView< const EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(Scalar, MatrixType, product), UpLo > operator*(const Scalar &s, const SelfAdjointView &mat)
const AutoDiffScalar< DerType > & conj(const AutoDiffScalar< DerType > &x)
EIGEN_DEVICE_FUNC Index outerStride() const
SrcEvaluatorTypeT::XprType SrcXprType
Expression of the product of two arbitrary matrices or vectors.
generic_dense_assignment_kernel< DstEvaluatorTypeT, SrcEvaluatorTypeT, Functor, Version > Base
MatrixType::StorageIndex StorageIndex
Base class for triangular part in a matrix.
EIGEN_DEVICE_FUNC const MatrixTypeNestedCleaned & _expression() const
const unsigned int DirectAccessBit
const unsigned int LvalueBit
SelfAdjointView< const typename MatrixType::AdjointReturnType, TransposeMode > AdjointReturnType
DstEvaluatorType::Scalar Scalar
EIGEN_DEVICE_FUNC void assignCoeff(Index row, Index col)
internal::remove_all< typename MatrixType::ConjugateReturnType >::type MatrixConjugateReturnType
Base::DstEvaluatorType DstEvaluatorType
MatrixType::PlainObject PlainObject
EIGEN_DEVICE_FUNC const MatrixTypeNestedCleaned & nestedExpression() const
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
NumTraits< Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC triangular_dense_assignment_kernel(DstEvaluatorType &dst, const SrcEvaluatorType &src, const Functor &func, DstXprType &dstExpr)
EIGEN_DEVICE_FUNC Scalar coeff(Index row, Index col) const
EIGEN_DEVICE_FUNC TransposeReturnType transpose()
storage_kind_to_evaluator_kind< typename MatrixType::StorageKind >::Kind Kind
Eigen::Index Index
The interface type of indices.
EIGEN_DEVICE_FUNC SelfAdjointViewReturnType< UpLo >::Type selfadjointView()
const unsigned int PacketAccessBit
Base::SrcEvaluatorType SrcEvaluatorType
EIGEN_DEVICE_FUNC const AdjointReturnType adjoint() const
EIGEN_DEVICE_FUNC Index innerStride() const
#define EIGEN_STATIC_ASSERT_LVALUE(Derived)
internal::traits< SelfAdjointView >::Scalar Scalar
The type of coefficients in this matrix.
internal::traits< SelfAdjointView >::MatrixTypeNestedCleaned MatrixTypeNestedCleaned
EIGEN_DEVICE_FUNC MatrixTypeNestedCleaned & nestedExpression()
internal::traits< SelfAdjointView >::MatrixTypeNested MatrixTypeNested
SrcEvaluatorTypeT SrcEvaluatorType
TriangularBase< SelfAdjointView > Base
EIGEN_DEVICE_FUNC internal::conditional<(TriMode &(Upper|Lower))==(UpLo &(Upper|Lower)), TriangularView< MatrixType, TriMode >, TriangularView< typename MatrixType::AdjointReturnType, TriMode > >::type triangularView() const
const unsigned int HereditaryBits
EIGEN_DEVICE_FUNC ColXpr col(Index i)
This is the const version of col().
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
SelfAdjointView< typename MatrixType::TransposeReturnType, TransposeMode > TransposeReturnType
EIGEN_DEVICE_FUNC Index cols() const
DstEvaluatorTypeT DstEvaluatorType
EIGEN_DEVICE_FUNC RowXpr row(Index i)
This is the const version of row(). */.
ref_selector< MatrixType >::non_const_type MatrixTypeNested
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
EIGEN_DEVICE_FUNC void assignOppositeCoeff(Index, Index)
EIGEN_DEVICE_FUNC const ConstTransposeReturnType transpose() const
EIGEN_DEVICE_FUNC SelfAdjointView(MatrixType &matrix)
Base::DstXprType DstXprType
EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id)
DstEvaluatorTypeT::XprType DstXprType
MatrixTypeNested m_matrix
EIGEN_DEVICE_FUNC MatrixType::ConstDiagonalReturnType diagonal() const
EIGEN_DEVICE_FUNC const ConjugateReturnType conjugate() const
Base::AssignmentTraits AssignmentTraits
MatrixType ExpressionType
Expression of a triangular part in a matrix.
SelfAdjointView< const typename MatrixType::ConstTransposeReturnType, TransposeMode > ConstTransposeReturnType
SelfAdjointView< const MatrixConjugateReturnType, Mode > ConjugateReturnType
MatrixType::PlainObject FullMatrixType
remove_all< MatrixTypeNested >::type MatrixTypeNestedCleaned
internal::conditional< NumTraits< Scalar >::IsComplex, const CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, const Derived >, const Derived & >::type ConjugateReturnType
EIGEN_DEVICE_FUNC Index rows() const
#define eigen_internal_assert(x)
The matrix class, also used for vectors and row-vectors.
Base::SrcXprType SrcXprType
Base class for all dense matrices, vectors, and expressions.
const unsigned int LinearAccessBit
friend EIGEN_DEVICE_FUNC const Product< OtherDerived, SelfAdjointView > operator*(const MatrixBase< OtherDerived > &lhs, const SelfAdjointView &rhs)
MatrixTypeNestedCleaned NestedExpression
EIGEN_DEVICE_FUNC Scalar & coeffRef(Index row, Index col)