We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5394fe commit 82c69c5Copy full SHA for 82c69c5
arrayfire/array.py
@@ -495,6 +495,10 @@ def to_list(self, row_major=False):
495
ct_array, shape = self.to_ctype(row_major, True)
496
return ctype_to_lists(ct_array, len(shape) - 1, shape)
497
498
+ def __repr__(self):
499
+ safe_call(backend.get().af_print_array(self.arr))
500
+ return '%s of dimensions %s' % (type(self), self.dims())
501
+
502
def display(a):
503
expr = inspect.stack()[1][-2]
504
if (expr is not None):
0 commit comments