bug #1064: add support for Ref<SparseVector>

This commit is contained in:
Gael Guennebaud
2015-10-21 09:47:43 +02:00
parent fe630c9873
commit 8961265889
3 changed files with 165 additions and 5 deletions

View File

@@ -235,6 +235,9 @@ class SparseVector
inline SparseVector(const SparseMatrixBase<OtherDerived>& other)
: m_size(0)
{
#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
#endif
check_template_parameters();
*this = other.derived();
}