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(), and scale_columns_2norm().

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