aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-05-17 14:39:31 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-05-17 14:39:31 +0200
commitbd0474adbbbd8a94293f9f28fec47f08fb597ac7 (patch)
tree2e988c153f0458171ce9e4117e7dd580b5461fd3 /Eigen
parent9ab3811cc57b651129a03506573436f923efd6a1 (diff)
Fix A=A with A a SparseMatrix
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/SparseCore/SparseMatrix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h
index de4d36840..b4ed27e9b 100644
--- a/Eigen/src/SparseCore/SparseMatrix.h
+++ b/Eigen/src/SparseCore/SparseMatrix.h
@@ -679,7 +679,7 @@ class SparseMatrix
{
swap(other.const_cast_derived());
}
- else
+ else if(this!=&other)
{
initAssignment(other);
if(other.isCompressed())