CppAD: A C++ Algorithmic Differentiation Package
20130918
|
Use default assignment operator because they may be optimized better than the code below:
template <class Base> inline AD<Base>& AD<Base>::operator=(const AD<Base> &right) { value_ = right.value_; tape_id_ = right.tape_id_; taddr_ = right.taddr_; return *this; }