Refactor make_complete() method for Grid instances
The instance method make_complete()
of the Grid
class is a carry-over method of the same name from the underlying MultiIndexSet
instance attached to the instance of Grid
.
Currently calling the method will return an instance of Grid
whose multi-index set is complete; the returned instance, however, may or may not be identical with the current instance.
Instead of this implicit behavior, it would be better that calling the method always return a new instance by default.
In principle, an in-place parameter may be introduced to the method to allow for an explicit in-place modification.
Similar carry-over methods from the underlying MultiIndexSet
instance are add_exponents()
(Issue #158 (closed)) and make_downward_closed()
(Issue #156 (closed)).
By making these methods available to the Grid
instances, we can avoid directly working on the MultiIndexSet
instances unnecessarily (and then create a new Grid
instance) when dealing with instances of Grid
.
This issue is part of the update and refactoring of the Grid
class (Issue #135).