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.
References syten::STensorImpl::STensor::autodiff_enabled(), syten::STensorImpl::STensor::b(), syten::STensorImpl::SBasis::f(), syten::STensorImpl::STensor::get_fermionic_order(), if_constexpr, std::move(), pseudo_invert(), syten::STensorImpl::STensor::rank(), SYTEN_ASSERT, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visnz().
Referenced by pseudo_invert(), and syten::STensorImpl::Autodiff::qr_adjoint_evaluator().