10 #ifndef EIGEN_SELFADJOINTMATRIX_H 11 #define EIGEN_SELFADJOINTMATRIX_H 32 template<
typename MatrixType,
unsigned int UpLo>
94 Base::check_coordinates_internal(row, col);
95 return m_matrix.coeff(row, col);
105 Base::check_coordinates_internal(row, col);
106 return m_matrix.coeffRef(row, col);
111 const MatrixTypeNestedCleaned&
_expression()
const {
return m_matrix; }
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>());
216 inline const AdjointReturnType
adjoint()
const 217 {
return AdjointReturnType(m_matrix.adjoint()); }
225 typename MatrixType::TransposeReturnType tmp(m_matrix);
226 return TransposeReturnType(tmp);
234 return ConstTransposeReturnType(m_matrix.transpose());
243 typename MatrixType::ConstDiagonalReturnType
diagonal()
const 245 return typename MatrixType::ConstDiagonalReturnType(m_matrix);
261 EigenvaluesReturnType eigenvalues()
const;
263 RealScalar operatorNorm()
const;
284 template<
typename MatrixType,
unsigned int Mode>
291 template<
int UpLo,
int SetOpposite,
typename DstEvaluatorTypeT,
typename SrcEvaluatorTypeT,
typename Functor,
int Version>
301 using Base::m_functor;
311 : Base(dst, src, func, dstExpr)
317 Scalar tmp = m_src.coeff(row,col);
318 m_functor.assignCoeff(m_dst.coeffRef(row,col), tmp);
319 m_functor.assignCoeff(m_dst.coeffRef(col,row),
numext::conj(tmp));
324 Base::assignCoeff(
id,
id);
338 template<
typename Derived>
339 template<
unsigned int UpLo>
355 template<
typename Derived>
356 template<
unsigned int UpLo>
365 #endif // EIGEN_SELFADJOINTMATRIX_H 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)
SrcEvaluatorTypeT::XprType SrcXprType
Expression of the product of two arbitrary matrices or vectors.
generic_dense_assignment_kernel< DstEvaluatorTypeT, SrcEvaluatorTypeT, Functor, Version > Base
EIGEN_DEVICE_FUNC const ConjugateReturnType conjugate() const
MatrixType::StorageIndex StorageIndex
Base class for triangular part in a matrix.
const unsigned int DirectAccessBit
EIGEN_DEVICE_FUNC MatrixType::ConstDiagonalReturnType diagonal() const
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index innerStride() const EIGEN_NOEXCEPT
const unsigned int LvalueBit
SelfAdjointView< const typename MatrixType::AdjointReturnType, TransposeMode > AdjointReturnType
DstEvaluatorType::Scalar Scalar
EIGEN_DEVICE_FUNC void assignCoeff(Index row, Index col)
Namespace containing all symbols from the Eigen library.
internal::remove_all< typename MatrixType::ConjugateReturnType >::type MatrixConjugateReturnType
EIGEN_DEVICE_FUNC internal::conditional< Cond, ConjugateReturnType, ConstSelfAdjointView >::type conjugateIf() const
Base::DstEvaluatorType DstEvaluatorType
MatrixType::PlainObject PlainObject
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)
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
EIGEN_DEVICE_FUNC TransposeReturnType transpose()
storage_kind_to_evaluator_kind< typename MatrixType::StorageKind >::Kind Kind
SelfAdjointView< typename internal::add_const< MatrixType >::type, UpLo > ConstSelfAdjointView
EIGEN_DEVICE_FUNC const AdjointReturnType adjoint() const
Eigen::Index Index
The interface type of indices.
EIGEN_DEVICE_FUNC SelfAdjointViewReturnType< UpLo >::Type selfadjointView()
const unsigned int PacketAccessBit
EIGEN_DEVICE_FUNC const MatrixTypeNestedCleaned & _expression() const
Base::SrcEvaluatorType SrcEvaluatorType
#define EIGEN_STATIC_ASSERT_LVALUE(Derived)
AnnoyingScalar conj(const AnnoyingScalar &x)
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index outerStride() const EIGEN_NOEXCEPT
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
EIGEN_DEVICE_FUNC const MatrixTypeNestedCleaned & nestedExpression() const
SrcEvaluatorTypeT SrcEvaluatorType
TriangularBase< SelfAdjointView > Base
EIGEN_DONT_INLINE void llt(const Mat &A, const Mat &B, Mat &C)
const unsigned int HereditaryBits
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
DstEvaluatorTypeT DstEvaluatorType
Array< int, Dynamic, 1 > v
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 SelfAdjointView(MatrixType &matrix)
Base::DstXprType DstXprType
EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id)
#define EIGEN_DEVICE_FUNC
DstEvaluatorTypeT::XprType DstXprType
MatrixTypeNested m_matrix
SelfAdjointView< const MatrixConjugateReturnType, UpLo > ConjugateReturnType
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Base::AssignmentTraits AssignmentTraits
MatrixType ExpressionType
Expression of a triangular part in a matrix.
SelfAdjointView< const typename MatrixType::ConstTransposeReturnType, TransposeMode > ConstTransposeReturnType
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
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
#define eigen_internal_assert(x)
EIGEN_DEVICE_FUNC const ConstTransposeReturnType transpose() const
Generic expression where a coefficient-wise unary operator is applied to an expression.
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
The matrix class, also used for vectors and row-vectors.
EIGEN_DEVICE_FUNC internal::conditional<(TriMode &(Upper|Lower))==(UpLo &(Upper|Lower)), TriangularView< MatrixType, TriMode >, TriangularView< typename MatrixType::AdjointReturnType, TriMode > >::type triangularView() const
Base::SrcXprType SrcXprType
EIGEN_DEVICE_FUNC const Product< SelfAdjointView, OtherDerived > operator*(const MatrixBase< OtherDerived > &rhs) const
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 coeff(Index row, Index col) const
EIGEN_DEVICE_FUNC Scalar & coeffRef(Index row, Index col)