how to reverse a matrix in numpy code example Example: reverse order np array reversed_arr = arr[::-1]