Skip to content

Commit 4ff0abc

Browse files
committed
bugfix: minor bug in cupy code for Restriction
1 parent cf48608 commit 4ff0abc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pylops/basicoperators/Restriction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(self, dims, iava, axis=-1, dir=None, dtype="float64", inplace=True)
112112
# explicitely create a list of indices in the n-dimensional
113113
# model space which will be used in _rmatvec to place the input
114114
if ncp != np:
115-
self.iavamask = _compute_iavamask(dims, dir, iava, ncp)
115+
self.iavamask = _compute_iavamask(self.dims, self.axis, self.iava, ncp)
116116
self.inplace = inplace
117117
self.shape = (np.prod(self.dimsd), np.prod(self.dims))
118118
self.dtype = np.dtype(dtype)

0 commit comments

Comments
 (0)