Skip to content

Commit bb6328b

Browse files
committed
Ensure array.copy() does a deep copy
1 parent 9811202 commit bb6328b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrayfire/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def __init__(self, src=None, dims=(0,), type_char=None):
179179

180180
def copy(self):
181181
out = array()
182-
safe_call(clib.af_retain_array(ct.pointer(out.arr), self.arr))
182+
safe_call(clib.af_copy_array(ct.pointer(out.arr), self.arr))
183183
return out
184184

185185
def __del__(self):

0 commit comments

Comments
 (0)