code: public void setRow(int i, double[] array, int offset)
      {
          int n = cols;
          for (int j=0;j<n;j++)
          {
              set(i, j, array[j+offset]);
          }
      }
docs: Aij = array[j]
  @param i
  @param array
  @param offset