mpi_array.globale_ufunc.GndarrayArrayUfuncExecutor.create_outputs

GndarrayArrayUfuncExecutor.create_outputs(outputs, result_shape, result_types)[source]

Returns list of output mpi_array.globale.gndarray instances.

Parameters:
  • outputs (None or tuple of mpi_array.globale.gndarray) – Output arrays passed in as the out argument of the numpy.ufunc.
  • result_shape (sequence of int) – The shape of all output arrays.
  • result_types (sequence of numpy.dtype) – The dtype of each output array. Note that this is the list for all outputs including any in the outputs argument. This determines the number of output arrays.
Return type:

list of mpi_array.globale.gndarray

Returns:

A list of length len(result_types) elements, each element is a mpi_array.globale.gndarray.