Skip to content

Commit

Permalink
clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored Oct 3, 2024
1 parent 5f668e2 commit 0c37b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyopencl/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def _get_common_dtype(obj1, obj2, queue):
"add one in order to be able to perform operations")

# Note: We are calling np.result_type with pyopencl arrays here.
# Luckily, np.result_type only looks at the dtype of input arrays as of
# numpy v2.1.
# Luckily, np.result_type only looks at the dtype of input arrays up until
# at least numpy v2.1.
result = np.result_type(obj1, obj2)

if not has_double_support(queue.device):
Expand Down

0 comments on commit 0c37b58

Please sign in to comment.