aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Sparse/DynamicSparseMatrix.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-12-09 19:39:15 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-12-09 19:39:15 +0100
commit0b32c5bddae0be7db30013864f39443e48ce5d93 (patch)
treec15730c9e47586b2fa5f5809757dd398409cb004 /Eigen/src/Sparse/DynamicSparseMatrix.h
parentaec07827197cbfa6457c1ef13a66061dc5991ffb (diff)
fix compilation of sparse_basic for DynamicSparseMatrix
Diffstat (limited to 'Eigen/src/Sparse/DynamicSparseMatrix.h')
-rw-r--r--Eigen/src/Sparse/DynamicSparseMatrix.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Sparse/DynamicSparseMatrix.h b/Eigen/src/Sparse/DynamicSparseMatrix.h
index 49a78fd26..ec6c3be8f 100644
--- a/Eigen/src/Sparse/DynamicSparseMatrix.h
+++ b/Eigen/src/Sparse/DynamicSparseMatrix.h
@@ -74,6 +74,7 @@ class DynamicSparseMatrix
// EIGEN_SPARSE_INHERIT_ASSIGNMENT_OPERATOR(DynamicSparseMatrix, -=)
typedef MappedSparseMatrix<Scalar,Flags> Map;
using Base::IsRowMajor;
+ using Base::operator=;
enum {
Options = _Options
};
@@ -283,6 +284,12 @@ class DynamicSparseMatrix
{
return SparseMatrixBase<DynamicSparseMatrix>::operator=(other.derived());
}
+
+ template<typename OtherDerived>
+ EIGEN_STRONG_INLINE DynamicSparseMatrix& operator=(const ReturnByValue<OtherDerived>& func)
+ {
+ return Base::operator=(func);
+ }
/** Destructor */
inline ~DynamicSparseMatrix() {}