Add Dscalar operator*=(DScalar1&)
parent
d81fbae942
commit
e0a021019e
|
@ -255,6 +255,12 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
inline DScalar1& operator*=(const DScalar1 &v) {
|
||||
grad = v.grad * value + grad * v.value;
|
||||
value *= v.value;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// @}
|
||||
// ======================================================================
|
||||
|
||||
|
|
Loading…
Reference in New Issue