SyTen

◆ make_zero() [1/2]

STensor syten::STensorImpl::make_zero ( STensor const &  in)

Creates a zero tensor of the same shape as in.

Remarks
This function is safe to call even if the AD information of the tensor in is incomplete, e.g. in the process of being set up.

References syten::STensorImpl::STensor::get_bases(), syten::STensorImpl::STensor::get_fermionic_order(), if_constexpr, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visit().

+ Here is the call graph for this function: