mxnet.ndarray.sparse.CSRNDArray.copyto¶
-
CSRNDArray.
copyto
(other)[source]¶ Copies the value of this array to another array.
If
other
is aNDArray
orCSRNDArray
object, thenother.shape
andself.shape
should be the same. This function copies the value fromself
toother
.If
other
is a context, a newCSRNDArray
will be first created on the target context, and the value ofself
is copied.- Parameters
other (NDArray or CSRNDArray or Context) – The destination array or context.
- Returns
The copied array. If
other
is anNDArray
orCSRNDArray
, then the return value andother
will point to the sameNDArray
orCSRNDArray
.- Return type