Skip to content

Commit

Permalink
Merge pull request #895 from pymor/fix_893
Browse files Browse the repository at this point in the history
Implement VectorArray.__deepcopy__ via VectorArray.copy(deep=True)
  • Loading branch information
sdrave committed Mar 10, 2020
2 parents 7b48269 + 5f0511b commit 1e5eaf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pymor/vectorarrays/interface.py
Expand Up @@ -250,6 +250,9 @@ def copy(self, deep=False):
"""
pass

def __deepcopy__(self, memo):
return self.copy(deep=True)

@abstractmethod
def scal(self, alpha):
"""BLAS SCAL operation (in-place scalar multiplication).
Expand Down

0 comments on commit 1e5eaf7

Please sign in to comment.