Sets the imaginary part of the input tensor to zero.
SYTEN_COMPLEX_SCALAR
is false, this operation returns the input tensor. References syten::STensorImpl::STensor::autodiff_enabled(), syten::STensorImpl::STensor::get_autodiff(), syten::STensorImpl::Autodiff::ComputeNode::get_output_adjoint(), if_constexpr, make_zero(), syten::mve(), syten::STensorImpl::STensor::new_autodiff_id(), prod(), syten::real(), real(), syten::STensorImpl::STensor::set_autodiff_node(), SYTEN_COMPLEX_SCALAR, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visit().
Referenced by diagonal_signs_to_largest(), hermitize_by_copy(), log(), log2(), syten::STensorImpl::STensor::operator SRDef(), real(), snorm(), and summarise().