Add Dscalar operator*=(DScalar1&)

metadata
Caleb Donovick 2016-11-15 04:35:54 -08:00 committed by Wenzel Jakob
parent d81fbae942
commit e0a021019e
1 changed files with 6 additions and 0 deletions

View File

@ -255,6 +255,12 @@ public:
return *this; return *this;
} }
inline DScalar1& operator*=(const DScalar1 &v) {
grad = v.grad * value + grad * v.value;
value *= v.value;
return *this;
}
/// @} /// @}
// ====================================================================== // ======================================================================