mpi_array.globale_creation.ones¶
-
mpi_array.globale_creation.
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. - order (
'C', 'F'
) – Only'C'
implemented. Whether to store multi-dimensional data in row-major (C-style) or column-major (Fortran-style) order in memory. - comms_and_distrib (
numpy.dtype
) – Data type of array elements.
Return type: Returns: Newly created array with one-initialised elements.
- shape (