struct pocketfft::detail::utilΒΆ
struct util {
// methods
static size_t largest_prime_factor(size_t n);
static double cost_guess(size_t n);
template <typename UIntT>
static UIntT good_size_cmplx_typed(UIntT n);
static size_t good_size_cmplx(size_t n);
static size_t good_size_cmplx(size_t n, size_t required_factor);
template <typename UIntT>
static UIntT good_size_real_typed(UIntT n);
static size_t good_size_real(size_t n);
static size_t good_size_real(size_t n, size_t required_factor);
template <typename UIntT>
static UIntT prev_good_size_cmplx_typed(UIntT n);
static size_t prev_good_size_cmplx(size_t n);
template <typename UIntT>
static UIntT prev_good_size_real_typed(UIntT n);
static size_t prev_good_size_real(size_t n);
static size_t prod(const shape_t& shape);
static void sanity_check(const shape_t& shape, const stride_t& stride_in, const stride_t& stride_out, bool inplace);
static void sanity_check(const shape_t& shape, const stride_t& stride_in, const stride_t& stride_out, bool inplace, const shape_t& axes);
static void sanity_check(const shape_t& shape, const stride_t& stride_in, const stride_t& stride_out, bool inplace, size_t axis);
static size_t thread_count(size_t nthreads, const shape_t& shape, size_t axis, size_t vlen);
};