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