code: public void setRow(int row, double[] values) {
          checkIndices(row, values.length - 1);
  
          values[row] = values[row];
      }
docs: {@inheritDoc}
  
  Note that any values are not on the diagonal are ignored.