swap - Okerew/okrolearn GitHub Wiki
You can use swap like here
from okrolearn.okrolearn import *
x = Tensor(np.array([1, 2], [3, 4](/Okerew/okrolearn/wiki/1,-2],-[3,-4)))
y = x.swap(0, 1) # This will transpose the matrix
print(y.data)
You can use swap like here
from okrolearn.okrolearn import *
x = Tensor(np.array([1, 2], [3, 4](/Okerew/okrolearn/wiki/1,-2],-[3,-4)))
y = x.swap(0, 1) # This will transpose the matrix
print(y.data)