carl
24.04
Computer ARithmetic Library
|
This class provides a cached prime factorization for std::size_t. More...
#include <FactorizationFactory.h>
Public Member Functions | |
FactorizationFactory () | |
const std::vector< uint > & | operator() (uint n) |
Returns the factorization of n. More... | |
Private Attributes | |
PrimeFactory< uint > | mPrimes |
std::vector< std::optional< std::vector< uint > > > | mCache |
This class provides a cached prime factorization for std::size_t.
Factorizations contain all prime factors, including multiples. Additionally, we define:
Definition at line 25 of file FactorizationFactory.h.
|
inline |
Definition at line 30 of file FactorizationFactory.h.
|
inline |
Returns the factorization of n.
Definition at line 35 of file FactorizationFactory.h.
|
private |
Definition at line 28 of file FactorizationFactory.h.
|
private |
Definition at line 27 of file FactorizationFactory.h.