fastSparseAdd/Substruct: use operator += and -=.

This commit is contained in:
Robert Kloefkorn
2016-02-18 15:31:35 +01:00
parent ce04e22399
commit 8b08be2b78

View File

@@ -245,7 +245,7 @@ fastSparseAdd(Lhs& lhs, const Rhs& rhs)
else else
{ {
// default Eigen operator+= // default Eigen operator+=
lhs = lhs + rhs; lhs += rhs;
} }
} }
@@ -274,7 +274,7 @@ fastSparseSubstract(Lhs& lhs, const Rhs& rhs)
else else
{ {
// default Eigen operator-= // default Eigen operator-=
lhs = lhs - rhs; lhs -= rhs;
} }
} }