Browse Source

Added an assignment constructor to the SparseMatrix.h

Former-commit-id: 8de6a61190
tempestpy_adaptions
PBerger 12 years ago
parent
commit
0051aec174
  1. 12
      src/storage/SparseMatrix.h

12
src/storage/SparseMatrix.h

@ -257,6 +257,18 @@ public:
currentSize(other.currentSize), lastRow(other.lastRow) { currentSize(other.currentSize), lastRow(other.lastRow) {
} }
/*!
* Copy Assignment Constructor.
*
* @param other The Matrix from which to copy the content
*/
storm::storage::SparseMatrix<T>& operator=(const SparseMatrix & other)
: rowCount(other.rowCount), colCount(other.colCount), nonZeroEntryCount(other.nonZeroEntryCount),
valueStorage(other.valueStorage), columnIndications(other.columnIndications),
rowIndications(other.rowIndications), internalStatus(other.internalStatus),
currentSize(other.currentSize), lastRow(other.lastRow) {
}
/*! /*!
* Constructs a sparse matrix object with the given (moved) contents. * Constructs a sparse matrix object with the given (moved) contents.
* *

Loading…
Cancel
Save