Suppose i have the following array:
In [1]: k
Out[1]:
array([[0],
[1],
[2],
[7],
[4],
[5],
[6]])
I would like to check whether each row of k is smaller than the next.
I tried the following but it did not work:
In [2]: k[:,0]<k[:+1,0]
Out[2]: array([False, False, False, False, False, False, False], dtype=bool)
What am i missing here?