I am trying to rewrite this line of python code in JAVA with ND4j library.
data[index_odd] = tmp[::-1,:]
It reverses the column's elements. (in other words, the order of rows) I used this line but apparently it just works when end>begin
INDArrayIndex rev_idx = NDArrayIndex.interval(10, 1);
I appreciate your help in advance