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