@@ -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
@@ -712,8 +737,9 @@ def copy(self, order="C"):
712
737
713
738
Notes
714
739
-----
715
- This function is the preferred method for creating an array copy. The
716
- function :func:`dpnp.copy` is similar, but it defaults to using order 'K'.
740
+ This function is the preferred method for creating an array copy.
741
+ The function :func:`dpnp.copy` is similar, but it defaults to using
742
+ order ``"K"``.
717
743
718
744
Examples
719
745
--------
@@ -735,7 +761,13 @@ def copy(self, order="C"):
735
761
736
762
"""
737
763
738
- return dpnp .copy (self , order = order )
764
+ return dpnp .copy (
765
+ self ,
766
+ order = order ,
767
+ device = device ,
768
+ usm_type = usm_type ,
769
+ sycl_queue = sycl_queue ,
770
+ )
739
771
740
772
# 'ctypes',
741
773
0 commit comments