@@ -19,7 +19,7 @@ def all_true_all(arr: AFArray, /) -> complex:
19
19
"""
20
20
real = ctypes .c_double (0 )
21
21
imag = ctypes .c_double (0 )
22
- call_from_clib (all_true .__name__ , ctypes .pointer (real ), ctypes .pointer (imag ), arr )
22
+ call_from_clib (all_true_all .__name__ , ctypes .pointer (real ), ctypes .pointer (imag ), arr )
23
23
return real .value if imag .value == 0 else real .value + imag .value * 1j
24
24
25
25
@@ -40,7 +40,7 @@ def any_true(arr: AFArray, dim: int, /) -> AFArray:
40
40
source: https://arrayfire.org/docs/group__reduce__func__any__true.htm#ga7c275cda2cfc8eb0bd20ea86472ca0d5
41
41
"""
42
42
out = AFArray .create_null_pointer ()
43
- call_from_clib (all_true .__name__ , ctypes .pointer (out ), arr , dim )
43
+ call_from_clib (any_true .__name__ , ctypes .pointer (out ), arr , dim )
44
44
return out
45
45
46
46
@@ -50,7 +50,7 @@ def any_true_all(arr: AFArray, /) -> int | float | bool | complex:
50
50
"""
51
51
real = ctypes .c_double (0 )
52
52
imag = ctypes .c_double (0 )
53
- call_from_clib (all_true .__name__ , ctypes .pointer (real ), ctypes .pointer (imag ), arr )
53
+ call_from_clib (any_true_all .__name__ , ctypes .pointer (real ), ctypes .pointer (imag ), arr )
54
54
return real .value if imag .value == 0 else real .value + imag .value * 1j
55
55
56
56
0 commit comments