Flatten the tensor X into a 1-D tensor containing all of its elements in row-major order.
X
Sign in to write and run your own code.
solve(...)