mpi_array.locale.ones¶
-
mpi_array.locale.
ones
(shape=None, dtype='float64', comms_and_distrib=None, order='C', **kwargs)[source]¶ Creates array of one-initialised elements.
Parameters: - shape (
None
or sequence ofint
) – Global shape to be distributed amongst memory nodes. - dtype (
numpy.dtype
) – Data type of array elements. - comms_and_distrib (
numpy.dtype
) – Data type of array elements.
Return type: Returns: Newly created array with one-initialised elements.
- shape (