sigpy.get_array_module¶
-
sigpy.
get_array_module
(array)[source]¶ Gets an appropriate module from
numpy
orcupy
.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: cupy
ornumpy
is returned based on input.Return type: module