示例#1
0
 /// <summary>Places the values of the specified row into the vector parameter.</summary>
 /// <remarks>Places the values of the specified row into the vector parameter.</remarks>
 /// <param name="row">the target row number</param>
 /// <param name="vector">the vector into which the row values will be placed</param>
 public void GetRow(int row, GVector vector)
 {
     if (vector.GetSize() < nCol)
     {
         vector.SetSize(nCol);
     }
     for (int i = 0; i < nCol; i++)
     {
         vector.values[i] = values[row][i];
     }
 }
示例#2
0
 /// <summary>Places the values of the specified column into the vector parameter.</summary>
 /// <remarks>Places the values of the specified column into the vector parameter.</remarks>
 /// <param name="col">the target column number</param>
 /// <param name="vector">the vector into which the column values will be placed</param>
 public void GetColumn(int col, GVector vector)
 {
     if (vector.GetSize() < nRow)
     {
         vector.SetSize(nRow);
     }
     for (int i = 0; i < nRow; i++)
     {
         vector.values[i] = values[i][col];
     }
 }