-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Fitting and Finding algorithm function interface (#922)
Changes both the fitting and the finding algorithm to use a regular interface with virtual methods rather than std::function to decouple the actual fitter/finder instances. The decoupling is only for compile-time memory usage reduction. The reason is that pybind11 does a round trip throught python with std::function, which we want to avoid. This is functionally equivalent, but uses a different mechanism. Also adds factory functions for these decoupled objects. We don't foresee these to be switchable, this decoupling is done for purely technical reasons anyway.
- Loading branch information
1 parent
cc52918
commit 6523cba
Showing
5 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters