SUNphi
1.0
|
Factorizes a number with a simple algorithm. More...
Go to the source code of this file.
Functions | |
template<typename I > | |
constexpr Vector< I > | SUNphi::factorize (I n) |
Factorizes a number with a simple algorithm. More... | |
template<typename I > | |
std::map< I, I > | SUNphi::factorizeGrouping (const I &i) |
Factorizes a number with a simple algorithm.
Definition in file Factorize.hpp.
constexpr Vector<I> SUNphi::factorize | ( | I | n | ) |
Factorizes a number with a simple algorithm.
Result of the factorization
List of all known primes before 100
Iterator to the initial value of the divisor
Divisor
Dividend
Remainder
n | Number to factorize |
Definition at line 16 of file Factorize.hpp.
std::map<I,I> SUNphi::factorizeGrouping | ( | const I & | i | ) |
Factorize grouping number
Example:
Ungrouped factors
Definition at line 84 of file Factorize.hpp.