SyTen

◆ imag()

STensor syten::STensorImpl::imag ( STensor  in)

Sets the real part of the input tensor to zero.

Remarks
Autodifferentiation treats this function as an addition of a constant.
If SYTEN_COMPLEX_SCALAR is false, the result will be a zero tensor of the correct shape.

References syten::STensorImpl::STensor::autodiff_enabled(), syten::STensorImpl::STensor::get_autodiff(), syten::STensorImpl::Autodiff::ComputeNode::get_output_adjoint(), if_constexpr, syten::imag(), make_zero(), syten::mve(), syten::STensorImpl::STensor::new_autodiff_id(), syten::STensorImpl::STensor::set_autodiff_node(), SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visit().

Referenced by syten::isParallel(), log(), log2(), syten::T3N::norm(), syten::MPS::normSqd(), syten::T3N::normSqd(), syten::STensorImpl::STensor::operator SRDef(), and summarise().

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