mpi_array.locale.ones_like¶
-
mpi_array.locale.ones_like(ary, *args, **kwargs)[source]¶ Return a new one-initialised array with the same shape and type as a given array.
Parameters: - ary (
LndarrayProxy) – Copy attributes from this array. - dtype (
numpy.dtype) – Specifies different dtype for the returned array.
Return type: Returns: Array of one-initialized data with the same shape and type as
ary.- ary (