9951 explained code solutions for 126 technologies


python-numpyGet array min


import numpy as np
arr = np.array([[1, 2], [3, 4]])
min = np.min(arr)ctrl + c
import numpy as np

load Numpy module for Python

np.array

declare Numpy array

[[1, 2], [3, 4]]

sample matrix data

np.min

returns min value of a given array