skcuda.misc.min

skcuda.misc.min(a_gpu, axis=None, keepdims=False)[source]

Return the minimum of an array or minimum along an axis.

Parameters:
  • a_gpu (pycuda.gpuarray.GPUArray) – Input array
  • axis (int (optional)) – Axis along which the minima are computed. The default is to compute the minimum of the flattened array.
  • keepdims (bool (optional, default False)) – If True, the axes which are reduced are left in the result as dimensions with size one.
Returns:

out – minimum of elements, or minima of elements along the desired axis.

Return type:

pycuda.gpuarray.GPUArray or float