One way:
using TensorCast
@cast v[i][j,k] := m[j,k][i] # := returns views; |= returns copies
The syntax above is very clear but another way, suggested by @aplavin in another post, might be faster:
using SplitApplyCombine
u = invert(m)
One way:
using TensorCast
@cast v[i][j,k] := m[j,k][i] # := returns views; |= returns copies
The syntax above is very clear but another way, suggested by @aplavin in another post, might be faster:
using SplitApplyCombine
u = invert(m)