I've a list made by sublists of numbers. This is named biglist
and it is:
biglist[0] = { 1, 2, 3, 4, 5 };
biglist[1] = { 5, 3, 3, 2, 1 };
biglist[2] = { 3, 4, 4, 5, 2 };
Now I want to create a matrix
using these sublists where each sublist represents a column of the matrix
. My final result has to be a matrix
5x3 in this way:
1 | 5 | 3
---------
2 | 3 | 4
---------
3 | 3 | 4
---------
4 | 2 | 5
---------
5 | 1 | 2
I know how to convert a list
to array
but I don't know how to assemble these arrays to create the matrix
.
I think the package Math.Net
could work for my purpose, but I don't understand how it's possible to do this with it.