sigpy.get_array_module¶
-
sigpy.get_array_module(array)[source]¶ Gets an appropriate module from
numpyorcupy.This is almost equivalent to
cupy.get_array_module(). The differences are that this function can be used even if cupy is not available.Parameters: array – Input array. Returns: cupyornumpyis returned based on input.Return type: module