|
|
@ -43,6 +43,11 @@ public: |
|
|
|
*/ |
|
|
|
typedef const uint_fast64_t * const constIndexIterator; |
|
|
|
|
|
|
|
/*! |
|
|
|
* Iterator type if we want to iterate over elements. |
|
|
|
*/ |
|
|
|
typedef const T* const constIterator; |
|
|
|
|
|
|
|
/*! |
|
|
|
* An enum representing the internal state of the Matrix. |
|
|
|
* After creating the Matrix using the Constructor, the Object is in state UnInitialized. After calling initialize(), that state changes to Initialized and after all entries have been entered and finalize() has been called, to ReadReady. |
|
|
@ -930,6 +935,26 @@ public: |
|
|
|
return this->columnIndications + this->rowIndications[row + 1]; |
|
|
|
} |
|
|
|
|
|
|
|
/*! |
|
|
|
* Returns an iterator over the elements of the given row. The iterator |
|
|
|
* will include neither the diagonal element nor zero entries. |
|
|
|
* @param row The row whose elements the iterator will return. |
|
|
|
* @return An iterator over the elements of the given row. |
|
|
|
*/ |
|
|
|
constIterator beginConstNoDiagIterator(uint_fast64_t row) const { |
|
|
|
return this->valueStorage + this->rowIndications[row]; |
|
|
|
} |
|
|
|
/*! |
|
|
|
* Returns an iterator pointing to the first element after the given |
|
|
|
* row. |
|
|
|
* @param row The row for which the iterator should point to the |
|
|
|
* past-the-end element. |
|
|
|
* @return An iterator to the element after the given row. |
|
|
|
*/ |
|
|
|
constIterator endConstNoDiagIterator(uint_fast64_t row) const { |
|
|
|
return this->valueStorage + this->rowIndications[row + 1]; |
|
|
|
} |
|
|
|
|
|
|
|
void print() const { |
|
|
|
std::cout << "diag: --------------------------------" << std::endl; |
|
|
|
for (uint_fast64_t i = 0; i < rowCount; ++i) { |
|
|
|