Flatten the tensor X into a 1-D tensor containing all of its elements in row-major order.
X
solve(...)