-
-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing KeyIterator used for JuMPArray to work also when index sets ar…
…e non indexable. (#836) * keys() work as expected now for JuMPArray when index set is not indexable * minor comment modification * fixed indentation to be 4 spaces * moved the initialization of KeyIterator state from constructor to Base.start * improved KeyIterator of JuMPArrays in two ways: - now the functions start next done do not modify arguments - less allocation thanks to caching and @generated functions * added JuMPKey, a tuple wrapper, to be used by keys(::JuMPArray) * added specialization of the iterator to keep good performance when having indexable sets * - removed JuMPKey (to be added in separate PR) - removed traits for indexability of indexsets - added a test with sets indexsets of JuMPArray
- Loading branch information
1 parent
9865cd3
commit b5225ba
Showing
3 changed files
with
97 additions
and
6 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