-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the automatical strategy when shared.
The automatical strategy has an issue when shared, it behaves as the wrong strategy if the matrices using it have different properties. This fixes this issue only by extending the current interface, and not changing any existing function. In effect: + Add a new virtual `copy` function to the strategies in order to create a new shared pointer polymorphically. + The approach used is to always copy the strategy, whenever a CSR matrix is instantiated or copied. Thankfully, the strategies are currently light objects so this should create few overhead. + Add tests which ensure that matrices with difference properties work correctly with the automatical strategy. Fixes #426
- Loading branch information
Showing
4 changed files
with
124 additions
and
15 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