Add missing sparse matrix constructor from sparse self-adjoint views, and add documentation for sparse time selfadjoint matrix

This commit is contained in:
Gael Guennebaud
2013-06-28 22:56:26 +02:00
parent 9f035c876a
commit 99bef0957b
2 changed files with 19 additions and 2 deletions

View File

@@ -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)