code: public void setRow(int row, double[] columns) {
          checkIndices(row, columns.length - 1);
  
          for (int col = 0; col < cols; ++col)
              matrix[getIndex(row,col)] = columns[col];
      }
docs: {@inheritDoc}