Function

NumCosmoMathutil_fact_size

Declaration [src]

gulong
ncm_util_fact_size (
  const gulong n
)

Description [src]

Calculate the smallest factorization of n such that $n_f = 2^\mu \times 3^\nu \times 5^\alpha \times 7^\beta$ and $n_f \geq n$.

This functions is useful to find a fft size such that fftw can optimized it more easily.

Parameters

n

Type: const gulong

A unsigned long integer.

Return value

Type: gulong

$n_f$.