libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
Typedefs | |
using | collection_type = std::vector< unsigned long > |
Functions | |
collection_type __fastcall | division (const collection_type::value_type x) noexcept(false) |
Factoring by division. More... | |
collection_type __fastcall | monte_carlo (const collection_type::value_type y) noexcept(false) |
Monte Carlo factorisation. More... | |
using jmmcg::LIBJMMCG_VER_NAMESPACE::factoring::collection_type = typedef std::vector<unsigned long> |
Definition at line 30 of file factoring.hpp.
|
inlinenoexcept |
Factoring by division.
x | The number to be factored. Must be greater than zero. |
Thanks to Knuth, et al for this routine. See his book "Seminumerical Algorithms. Vol 2".
Definition at line 42 of file factoring.hpp.
|
inlinenoexcept |
Monte Carlo factorisation.
y | The number to be factored. |
Thanks to Knuth, et al for this routine. See his book "Seminumerical Algorithms. Vol 2".
Definition at line 85 of file factoring.hpp.