Skip to content

Commit

Permalink
Update pycuda/gpuarray.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Klöckner <[email protected]>
  • Loading branch information
vincefn and inducer authored May 6, 2024
1 parent 846affb commit 1cc39be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycuda/gpuarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def _new_like_me(self, dtype=None, order="C"):
# operators ---------------------------------------------------------------
def mul_add(self, selffac, other, otherfac, add_timer=None, stream=None, out=None):
"""Return `selffac * self + otherfac*other`."""
result = self._new_like_me(_get_common_dtype(self, other)) if out is None else out
result = out if out is not None else self._new_like_me(_get_common_dtype(self, other))
return self._axpbyz(selffac, other, otherfac, result, add_timer, stream=stream)

def __add__(self, other):
Expand Down

0 comments on commit 1cc39be

Please sign in to comment.