Given an array A of shape (n,d). n is the number of points (or vectors) and d the dimension of each point.
I want to select points from A that are between two vectors mins and maxes. mins and maxes are of dimension d. mins and maxes have for each dimension the minimum value and the maximum value.
A=array([[ 4, 3, 12, 7],
[ 3, 2, 10, 5],
[ 6, 10, 14, 8],
[ 7, 11, 13, 14],
[10, 16, 20, 14],
[12, 19, 22, 16],
[ 7, 10, 25, 18]])
mins = np.array( [5,9,12,6])
maxes = np.array( [10,17,20,15] )
the results expected are:
[ 6, 10, 14, 8],
[ 7, 11, 13, 14],
[10, 16, 20, 14]