|
LBANN
0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
|
Functions | |
| int | prime (int n) |
| std::vector< int > | prime_factors (int n) |
| std::vector< int > | balanced_factors (int n, int num_factors) |
| std::vector<int> lbann::number_theory::balanced_factors | ( | int | n, |
| int | num_factors | ||
| ) |
Get balanced factorization of n. Factors are sorted in ascending order. The factors should be as close as possible.
| int lbann::number_theory::prime | ( | int | n | ) |
Get prime number. Indices are zero-indexed, so prime(0) is 2, prime(1) is 3, and so on. Results are cached for future function calls.
| std::vector<int> lbann::number_theory::prime_factors | ( | int | n | ) |
Get prime factorization of n. Prime factors are sorted in ascending order.