mpi_array.globale_creation.asarray¶
-
mpi_array.globale_creation.asarray(a, dtype=None, order=None, **kwargs)[source]¶ Converts
a(potentially via a copy) to ampi_array.globale.gndarray. Thekwargsare as for thempi_array.comms.create_distributon()function and determine the distribution for the returnedmpi_array.globale.gndarray.Parameters: - a (scalar,
tuple,list,numpy.ndarray, etc) – Object converted to ampi_array.globale.gndarray. - dtype (
numpy.dtype) – Thenumpy.dtypefor the returnedmpi_array.globale.gndarray. - 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. Defaults to'C'.
Return type: Returns: The object
aconverted to an instance ofmpi_array.globale.gndarray.See also
- a (scalar,