SyTen

◆ real()

STensor syten::STensorImpl::real ( STensor  in)

Sets the imaginary part of the input tensor to zero.

Remarks
Autodifferentiation treats this function as an addition by a constant.
If 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: