Beispiel #1
0
 internal MatrixRow Sort()
 {
     MatrixRow result = new MatrixRow(this.Size);
     var z = this.items.OrderBy(x => x);
     int i = 0;
     foreach (double x in z)
     {
         result.items[i] = x;
         i++;
     }
     return result;
 }
Beispiel #2
0
 private MatrixRow[] CreateRowsList(int rows, int cols)
 {
     MatrixRow[] result = new MatrixRow[rows];
     for (int i = 0; i < rows; i++)
         result[i] = new MatrixRow(cols);
     return result;
 }