diff --git a/MathLib/LinAlg/Sparse/CRSMatrix.h b/MathLib/LinAlg/Sparse/CRSMatrix.h index 65e503ddc2fe1c7c72a963c297dd4176fbb96226..beeb3a4407cb10f9d43823d78cb21d67f4b7fa00 100644 --- a/MathLib/LinAlg/Sparse/CRSMatrix.h +++ b/MathLib/LinAlg/Sparse/CRSMatrix.h @@ -125,6 +125,13 @@ public: return 1; } + /** + * This is an access operator to a non-zero matrix entry. If the value of + * a non-existing matrix entry is requested it will be 0.0 returned. + * @param row the row number + * @param col the column number + * @return The corresponding matrix entry or 0.0. + */ double getValue(IDX_TYPE row, IDX_TYPE col) { assert(0 <= row && row < MatrixBase::_n_rows);