
Originally Posted by
DNA7433
ProcessRowOfMatrix could just take a reference to the whole matrix and an index to the row you want to process. ProcessRowOfMatrix can use a simple loop and there's no need for a temp array.
... nope. I am allready using that Progress-function for something else. And I would like to reuse it.
So at the moment I use an additional function that looks like this:
Code:
private double[] GetRowFromMatrix(double[,] matrix, int rownr){
int length = matrix.GetLength(1);
double[] row = new double[length];
for (int i = 0; i < length; i++)
row[i] = matrix[rownr,i];
return row;
}
But the goal of my question was, kind of hoping there was a trick to do it with [i,*] or maybe [i,?] or with some Get function or something like that....