Closed
Description
Some array libraries implement a .copy()
method (like NumPy). While there are some indirect ways to get at this now (asarray
, reshape
, etc.), currently the API lacks a way to do this directly and without other potential side-effects. Should add a method (unlike a function) would ensure the new array has the original array's type simply. Curious if there is appetite for including this in the API.
Related is a question of what interplay there is with __copy__
and/or __deepcopy__
(if any).