* STL-like iterator with the
* first entry of row @p{r}.
*/
- const_iterator begin (unsigned int r) const;
+ const_iterator begin (const unsigned int r) const;
/**
* Final iterator of row @p{r}.
*/
- const_iterator end (unsigned int r) const;
+ const_iterator end (const unsigned int r) const;
/**
* Print the matrix to the given
template <typename number>
inline
typename SparseMatrix<number>::const_iterator
-SparseMatrix<number>::begin (unsigned int r) const
+SparseMatrix<number>::begin (const unsigned int r) const
{
Assert (r<m(), ExcIndexRange(r,0,m()));
return const_iterator(this, r, 0);
template <typename number>
inline
typename SparseMatrix<number>::const_iterator
-SparseMatrix<number>::end (unsigned int r) const
+SparseMatrix<number>::end (const unsigned int r) const
{
Assert (r<m(), ExcIndexRange(r,0,m()));
return const_iterator(this, r+1, 0);
* STL-like iterator with the
* first entry of row @p{r}.
*/
- const_iterator begin (unsigned int r) const;
+ const_iterator begin (const unsigned int r) const;
/**
* Final iterator of row @p{r}.
*/
- const_iterator end (unsigned int r) const;
+ const_iterator end (const unsigned int r) const;
/**
* Return the number of nonzero
template <typename number>
inline
typename SparseMatrixEZ<number>::const_iterator
-SparseMatrixEZ<number>::begin (unsigned int r) const
+SparseMatrixEZ<number>::begin (const unsigned int r) const
{
Assert (r<m(), ExcIndexRange(r,0,m()));
return const_iterator(this, r, 0);
template <typename number>
inline
typename SparseMatrixEZ<number>::const_iterator
-SparseMatrixEZ<number>::end (unsigned int r) const
+SparseMatrixEZ<number>::end (const unsigned int r) const
{
Assert (r<m(), ExcIndexRange(r,0,m()));
return const_iterator(this, r+1, 0);