mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* bybye Part, welcome TriangularView and SelfAdjointView.
* move solveTriangular*() to TriangularView::solve*() * move .llt() to SelfAdjointView * add a high level wrapper to the efficient selfadjoint * vector product * improve LLT so that we can specify which triangular part is meaningless => there are still many things to do (doc, cleaning, improve the matrix products, etc.)
This commit is contained in:
@@ -456,6 +456,21 @@ class Matrix
|
||||
*this = other;
|
||||
}
|
||||
|
||||
template<typename TriangularDerived>
|
||||
EIGEN_STRONG_INLINE Matrix& operator=(const TriangularBase<TriangularDerived> &other)
|
||||
{
|
||||
resize(other.rows(), other.cols());
|
||||
Base::operator=(other.derived());
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<typename TriangularDerived>
|
||||
EIGEN_STRONG_INLINE Matrix(const TriangularBase<TriangularDerived> &other)
|
||||
: m_storage(other.rows() * other.cols(), other.rows(), other.cols())
|
||||
{
|
||||
*this = other;
|
||||
}
|
||||
|
||||
/** Override MatrixBase::swap() since for dynamic-sized matrices of same type it is enough to swap the
|
||||
* data pointers.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user