Lines Matching refs:MatrixType

16 template<typename MatrixType, int UpLo> struct LLT_Traits;
55 typedef _MatrixType MatrixType;
57 RowsAtCompileTime = MatrixType::RowsAtCompileTime,
58 ColsAtCompileTime = MatrixType::ColsAtCompileTime,
59 MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime
61 typedef typename MatrixType::Scalar Scalar;
62 typedef typename NumTraits<typename MatrixType::Scalar>::Real RealScalar;
64 typedef typename MatrixType::StorageIndex StorageIndex;
72 typedef internal::LLT_Traits<MatrixType,UpLo> Traits;
78 * perform decompositions via LLT::compute(const MatrixType&).
102 * \c MatrixType is a Eigen::Ref.
168 inline const MatrixType& matrixLLT() const
174 MatrixType reconstructedMatrix() const;
218 MatrixType m_matrix;
228 template<typename MatrixType, typename VectorType>
229 static Index llt_rank_update_lower(MatrixType& mat, const VectorType& vec, const typename MatrixType::RealScalar& sigma)
232 typedef typename MatrixType::Scalar Scalar;
233 typedef typename MatrixType::RealScalar RealScalar;
234 typedef typename MatrixType::ColXpr ColXpr;
301 template<typename MatrixType>
302 static Index unblocked(MatrixType& mat)
312 Block<MatrixType,Dynamic,1> A21(mat,k+1,k,rs,1);
313 Block<MatrixType,1,Dynamic> A10(mat,k,0,1,k);
314 Block<MatrixType,Dynamic,Dynamic> A20(mat,k+1,0,rs,k);
327 template<typename MatrixType>
328 static Index blocked(MatrixType& m)
347 Block<MatrixType,Dynamic,Dynamic> A11(m,k, k, bs,bs);
348 Block<MatrixType,Dynamic,Dynamic> A21(m,k+bs,k, rs,bs);
349 Block<MatrixType,Dynamic,Dynamic> A22(m,k+bs,k+bs,rs,rs);
359 template<typename MatrixType, typename VectorType>
360 static Index rankUpdate(MatrixType& mat, const VectorType& vec, const RealScalar& sigma)
370 template<typename MatrixType>
371 static EIGEN_STRONG_INLINE Index unblocked(MatrixType& mat)
373 Transpose<MatrixType> matt(mat);
376 template<typename MatrixType>
377 static EIGEN_STRONG_INLINE Index blocked(MatrixType& mat)
379 Transpose<MatrixType> matt(mat);
382 template<typename MatrixType, typename VectorType>
383 static Index rankUpdate(MatrixType& mat, const VectorType& vec, const RealScalar& sigma)
385 Transpose<MatrixType> matt(mat);
390 template<typename MatrixType> struct LLT_Traits<MatrixType,Lower>
392 typedef const TriangularView<const MatrixType, Lower> MatrixL;
393 typedef const TriangularView<const typename MatrixType::AdjointReturnType, Upper> MatrixU;
394 static inline MatrixL getL(const MatrixType& m) { return MatrixL(m); }
395 static inline MatrixU getU(const MatrixType& m) { return MatrixU(m.adjoint()); }
396 static bool inplace_decomposition(MatrixType& m)
397 { return llt_inplace<typename MatrixType::Scalar, Lower>::blocked(m)==-1; }
400 template<typename MatrixType> struct LLT_Traits<MatrixType,Upper>
402 typedef const TriangularView<const typename MatrixType::AdjointReturnType, Lower> MatrixL;
403 typedef const TriangularView<const MatrixType, Upper> MatrixU;
404 static inline MatrixL getL(const MatrixType& m) { return MatrixL(m.adjoint()); }
405 static inline MatrixU getU(const MatrixType& m) { return MatrixU(m); }
406 static bool inplace_decomposition(MatrixType& m)
407 { return llt_inplace<typename MatrixType::Scalar, Upper>::blocked(m)==-1; }
419 template<typename MatrixType, int _UpLo>
421 LLT<MatrixType,_UpLo>& LLT<MatrixType,_UpLo>::compute(const EigenBase<InputType>& a)
462 if(internal::llt_inplace<typename MatrixType::Scalar, UpLo>::rankUpdate(m_matrix,v,sigma)>=0)
490 template<typename MatrixType, int _UpLo>
492 void LLT<MatrixType,_UpLo>::solveInPlace(MatrixBase<Derived> &bAndX) const
503 template<typename MatrixType, int _UpLo>
504 MatrixType LLT<MatrixType,_UpLo>::reconstructedMatrix() const
525 template<typename MatrixType, unsigned int UpLo>
526 inline const LLT<typename SelfAdjointView<MatrixType, UpLo>::PlainObject, UpLo>
527 SelfAdjointView<MatrixType, UpLo>::llt() const