iterate now computes highest value fraction it generated.

Not very useful, but isn't a massive performance waster (I think) and
it will be useful when thinking about colour schemes in graphics.
This commit is contained in:
2024-07-26 03:13:24 +01:00
parent 84c07870e4
commit 4cc1af94f6
2 changed files with 7 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ struct NodeAllocator
};
word_t gcd(word_t a, word_t b);
void iterate(std::queue<word_t> &queue, NodeAllocator &allocator);
Fraction iterate(std::queue<word_t> &queue, NodeAllocator &allocator);
std::string to_string(const Fraction &);
std::string to_string(const NodeAllocator &, const word_t, int depth = 1);