Hello,
I am trying to populate a 3x3 matrix with values in C# but don’t know how to do it.
Matrix myfirstmatrix = new Matrix(3,3);
I know I can do this:
myfirstmatrix[1,1] = 3;
but i want to populate the matrix in one line, instead of item by item.
myfirstmatrix = {{1,2,3},{4,5,6},{7,8,9}} //I have no clue what the syntax here should be
Thanks