Skip to content

Some refactoring#586

Merged
marcelm merged 8 commits into
mainfrom
refactor
May 11, 2026
Merged

Some refactoring#586
marcelm merged 8 commits into
mainfrom
refactor

Conversation

@marcelm
Copy link
Copy Markdown
Collaborator

@marcelm marcelm commented May 11, 2026

Since it’s a bit unclear whether we are going to merge PR #576/#584, I’ve extracted the first couple of commits from #584. These only do some refactoring that is I think an overall improvement and can be merged no matter what we decide on the main PRs.

@marcelm
Copy link
Copy Markdown
Collaborator Author

marcelm commented May 11, 2026

I’ve added a couple of (refactoring) commits that I had in a different branch. These introduce a ChainingResult struct that is returned by the Chainer.

That is, instead of colinear_chaining returning a (f32, Vec<f32>, Vec<usize>) tuple, it returns a ChainingResult. Then the chains are computed with ChainingResult::extract_chains instead of a free-standing extract_chains_from_dp function.

The idea is that ChainingResult could become an iterator that yields chains one by one (but this is not yet implemented here).

@marcelm marcelm merged commit 369130c into main May 11, 2026
10 checks passed
@marcelm marcelm deleted the refactor branch May 11, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant