SyTen

◆ closest_power_two()

template<typename T >
constexpr T syten::closest_power_two ( T const &  in)
inlineconstexpr

Returns an power-of-two approximation to in

References syten::STensorImpl::log2(), and pow().

Referenced by syten::MPS::equiscale(), scale_columns_2norm(), syten::MPS::BasisTransformation::ModeTransformation::transform_accepted(), and syten::MPS::BasisTransformation::ModeTransformation::transform_accepted_global().

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