@@ -696,10 +696,35 @@ def conjugate(self):
696
696
else :
697
697
return dpnp .conjugate (self )
698
698
699
- def copy (self , order = "C" ):
699
+ def copy (self , order = "C" , device = None , usm_type = None , sycl_queue = None ):
700
700
"""
701
701
Return a copy of the array.
702
702
703
+ Refer to :obj:`dpnp.copy` for full documentation.
704
+
705
+ Parameters
706
+ ----------
707
+ order : {"C", "F", "A", "K"}, optional
708
+ Memory layout of the newly output array.
709
+ Default: ``"C"``.
710
+ device : {None, string, SyclDevice, SyclQueue}, optional
711
+ An array API concept of device where the output array is created.
712
+ The `device` can be ``None`` (the default), an OneAPI filter
713
+ selector string, an instance of :class:`dpctl.SyclDevice`
714
+ corresponding to a non-partitioned SYCL device, an instance of
715
+ :class:`dpctl.SyclQueue`, or a `Device` object returned by
716
+ :obj:`dpnp.dpnp_array.dpnp_array.device` property.
717
+ Default: ``None``.
718
+ usm_type : {None, "device", "shared", "host"}, optional
719
+ The type of SYCL USM allocation for the output array.
720
+ Default: ``None``.
721
+ sycl_queue : {None, SyclQueue}, optional
722
+ A SYCL queue to use for output array allocation and copying. The
723
+ `sycl_queue` can be passed as ``None`` (the default), which means
724
+ to get the SYCL queue from `device` keyword if present or to use
725
+ a default queue.
726
+ Default: ``None``.
727
+
703
728
Returns
704
729
-------
705
730
out : dpnp.ndarray
@@ -735,7 +760,13 @@ def copy(self, order="C"):
735
760
736
761
"""
737
762
738
- return dpnp .copy (self , order = order )
763
+ return dpnp .copy (
764
+ self ,
765
+ order = order ,
766
+ device = device ,
767
+ usm_type = usm_type ,
768
+ sycl_queue = sycl_queue ,
769
+ )
739
770
740
771
# 'ctypes',
741
772
0 commit comments