From 4cc1af94f67a0a7427fc0f42fbb97a091b859141 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 26 Jul 2024 03:13:24 +0100 Subject: `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. --- src/numerics.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/numerics.hpp') diff --git a/src/numerics.hpp b/src/numerics.hpp index f095368..9fdaf56 100644 --- a/src/numerics.hpp +++ b/src/numerics.hpp @@ -54,7 +54,7 @@ struct NodeAllocator }; word_t gcd(word_t a, word_t b); -void iterate(std::queue &queue, NodeAllocator &allocator); +Fraction iterate(std::queue &queue, NodeAllocator &allocator); std::string to_string(const Fraction &); std::string to_string(const NodeAllocator &, const word_t, int depth = 1); -- cgit v1.2.3-13-gbd6f