-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a copy argument to
MultiVector.__init__
The behavior of `MultiVector(layout, some_array)` has always been to copy `some_array`. This change makes that copy opt-out, via `MultiVector(layout, some_array, copy=False)`. This is used internally by all of the arithmetic operators to avoid unnecessary copies.
- Loading branch information
1 parent
36b5963
commit cc35ea6
Showing
2 changed files
with
19 additions
and
5 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