Autodiff::STensorId syten::STensorImpl::STensor::new_autodiff_id | ( | ) |
Generates a new autodiff ID for the STensor.
This resets the compute node of the tensor to nullptr
, which causes it to be in an invalid state until set_autodiff_node()
was called on it. Do not access the *_autodiff_*
functions between calls to new_autodiff_id()
and set_autodiff_node()
.
References ad_compute_node, ad_id, and syten::STensorImpl::Autodiff::new_id().
Referenced by syten::STensorImpl::add_dummy_leg(), syten::STensorImpl::Autodiff::create_product_differentiable(), syten::STensorImpl::flip_in_product(), syten::STensorImpl::flip_on_tensor(), get_and_renew_autodiff(), syten::STensorImpl::imag(), syten::STensorImpl::STensorProxy::operator STensor(), syten::STensorImpl::operator*=(), syten::STensorImpl::operator+=(), syten::STensorImpl::operator/=(), syten::STensorImpl::prod(), syten::STensorImpl::real(), syten::STensorImpl::remove_dummy_leg(), and syten::STensorImpl::trace().