NTLib - Number Theory Library 0.9
Loading...
Searching...
No Matches
divisors Module Reference

Work with the divisors of an integer. More...

Functions

template<Integer T>
constexpr T ntlib::count_divisors (const prime_factors< T > &factors) noexcept
 Counts the number of divisors of a given number n.
template<Integer T, Integer Exp>
constexpr T ntlib::divisor_function (const prime_factors< T > &factors, Exp x) noexcept
 Computes the divisor function for a given number n.
template<Integer T>
constexpr std::vector< T > ntlib::enumerate_divisors (const prime_factors< T > &factors)
 Enumerates all divisors of a given number n.

Detailed Description

Work with the divisors of an integer.

Provides function templates to count and enumerate divisors of integers or to compute the divisor function.

Files

file  modules/arithmetic_functions/divisors.cpp
 Primary module interface unit for module divisors.