Inverted all xs and ys

Tensors are contiguous by rows and not by columns