mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add missing sparse matrix constructor from sparse self-adjoint views, and add documentation for sparse time selfadjoint matrix
This commit is contained in:
@@ -647,6 +647,15 @@ class SparseMatrix
|
||||
check_template_parameters();
|
||||
*this = other.derived();
|
||||
}
|
||||
|
||||
/** Constructs a sparse matrix from the sparse selfadjoint view \a other */
|
||||
template<typename OtherDerived, unsigned int UpLo>
|
||||
inline SparseMatrix(const SparseSelfAdjointView<OtherDerived, UpLo>& other)
|
||||
: m_outerSize(0), m_innerSize(0), m_outerIndex(0), m_innerNonZeros(0)
|
||||
{
|
||||
check_template_parameters();
|
||||
*this = other;
|
||||
}
|
||||
|
||||
/** Copy constructor (it performs a deep copy) */
|
||||
inline SparseMatrix(const SparseMatrix& other)
|
||||
|
||||
Reference in New Issue
Block a user