I have a List of a List (a matrix, which is sent via web.api HTTP POST from matlab).
List<List<decimal>> mylist;
The size of the matrix is nxm
, how can I swap those lists? i.e.
mylist[i][j] --> mylist[j][i]
In Matlab the operation would be mylist'
or in mathematical context (transposing)
mylist^T