mpi_array.globale_creation.asarray

mpi_array.globale_creation.asarray(a, dtype=None, order=None, **kwargs)[source]

Converts a (potentially via a copy) to a mpi_array.globale.gndarray. The kwargs are as for the mpi_array.comms.create_distributon() function and determine the distribution for the returned mpi_array.globale.gndarray.

Parameters:
Return type:

mpi_array.globale.gndarray

Returns:

The object a converted to an instance of mpi_array.globale.gndarray.

See also

array(), asanyarray()