SyTen

◆ pseudo_invert()

std::tuple< SRDef, STensor > syten::STensorImpl::pseudo_invert ( STensor const &  in)

Inverts the tensor using a SVD and returns the condition number of the result, which is obtained as the ratio of the largest and smallest inverted singular value.

Remarks
This function is not autodifferentiable.

References syten::STensorImpl::STensor::autodiff_enabled(), syten::STensorImpl::STensor::b(), syten::STensorImpl::SBasis::f(), syten::STensorImpl::STensor::get_fermionic_order(), if_constexpr, std::move(), syten::STensorImpl::STensor::rank(), SYTEN_ASSERT, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visnz().

Referenced by syten::STensorImpl::Autodiff::qr_adjoint_evaluator().

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