Reverse the 1-D tensor a so the first element becomes the last and vice versa.
a
Sign in to write and run your own code.
solve(...)