10 #ifndef EIGEN_SELFADJOINTMATRIX_H 11 #define EIGEN_SELFADJOINTMATRIX_H 32 template<
typename MatrixType,
unsigned int UpLo>
75 inline Index rows()
const {
return m_matrix.rows(); }
77 inline Index cols()
const {
return m_matrix.cols(); }
89 Base::check_coordinates_internal(row, col);
90 return m_matrix.coeff(row, col);
100 Base::check_coordinates_internal(row, col);
101 return m_matrix.coeffRef(row, col);
106 const MatrixTypeNestedCleaned&
_expression()
const {
return m_matrix; }
114 template<
typename OtherDerived>
123 template<
typename OtherDerived>
friend 131 friend EIGEN_DEVICE_FUNC
148 template<
typename DerivedU,
typename DerivedV>
162 template<
typename DerivedU>
176 template<
unsigned int TriMode>
196 typename MatrixType::ConstDiagonalReturnType
diagonal()
const 198 return typename MatrixType::ConstDiagonalReturnType(m_matrix);
214 EigenvaluesReturnType eigenvalues()
const;
216 RealScalar operatorNorm()
const;
237 template<
typename MatrixType,
unsigned int Mode>
244 template<
int UpLo,
int SetOpposite,
typename DstEvaluatorTypeT,
typename SrcEvaluatorTypeT,
typename Functor,
int Version>
254 using Base::m_functor;
264 : Base(dst, src, func, dstExpr)
270 Scalar tmp = m_src.coeff(row,col);
271 m_functor.assignCoeff(m_dst.coeffRef(row,col), tmp);
272 m_functor.assignCoeff(m_dst.coeffRef(col,row), numext::conj(tmp));
277 Base::assignCoeff(
id,
id);
290 template<
typename Derived>
291 template<
unsigned int UpLo>
298 template<
typename Derived>
299 template<
unsigned int UpLo>
308 #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.
EIGEN_DEVICE_FUNC Index outerStride() const
generic_dense_assignment_kernel< DstEvaluatorTypeT, SrcEvaluatorTypeT, Functor, Version > Base
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 ColXpr col(Index i)
This is the const version of col(). */.
const unsigned int LvalueBit
DstEvaluatorType::Scalar Scalar
EIGEN_DEVICE_FUNC void assignCoeff(Index row, Index col)
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)
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
EIGEN_DEVICE_FUNC const MatrixTypeNestedCleaned & _expression() const
Base::SrcEvaluatorType SrcEvaluatorType
#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
EIGEN_DEVICE_FUNC const MatrixTypeNestedCleaned & nestedExpression() const
SrcEvaluatorTypeT SrcEvaluatorType
TriangularBase< SelfAdjointView > Base
const unsigned int HereditaryBits
EIGEN_DEVICE_FUNC Index rows() const
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.
DstEvaluatorTypeT DstEvaluatorType
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 Index innerStride() const
EIGEN_DEVICE_FUNC SelfAdjointView(MatrixType &matrix)
Base::DstXprType DstXprType
EIGEN_DEVICE_FUNC Index cols() const
EIGEN_DEVICE_FUNC void assignDiagonalCoeff(Index id)
DstEvaluatorTypeT::XprType DstXprType
MatrixTypeNested m_matrix
Base::AssignmentTraits AssignmentTraits
MatrixType ExpressionType
Expression of a triangular part in a matrix.
EIGEN_DEVICE_FUNC RowXpr row(Index i)
This is the const version of row(). */.
MatrixType::PlainObject FullMatrixType
remove_all< MatrixTypeNested >::type MatrixTypeNestedCleaned
#define eigen_internal_assert(x)
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)