asnumpy

sparse.asnumpy(a, dtype=None, order=None)[source]

Returns a dense numpy array from an arbitrary source array.

Parameters:
  • a – Arbitrary object that can be converted to numpy.ndarray.

  • order ({'C', 'F', 'A'}) – The desired memory layout of the output array. When order is ‘A’, it uses ‘F’ if a is fortran-contiguous and ‘C’ otherwise.

Returns:

Converted array on the host memory.

Return type:

numpy.ndarray