We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d89307 commit ed12077Copy full SHA for ed12077
1 file changed
arrayfire/array.py
@@ -642,6 +642,14 @@ def is_bool(self):
642
safe_call(backend.get().af_is_bool(ct.pointer(res), self.arr))
643
return res.value
644
645
+ def is_linear(self):
646
+ """
647
+ Check if all elements of the array are contiguous.
648
649
+ res = ct.c_bool(False)
650
+ safe_call(backend.get().af_is_linear(ct.pointer(res), self.arr))
651
+ return res.value
652
+
653
def __add__(self, other):
654
"""
655
Return self + other.
0 commit comments