Skip to content
Snippets Groups Projects
Commit eddfa08f authored by Oliver Sander's avatar Oliver Sander
Browse files

added const operator[]

[[Imported from SVN: r308]]
parent 6cf6ad81
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,9 @@ namespace Dune {
/** \brief Get the i-th diagonal element */
B& operator[](int i) {return data_[i];}
/** \brief Get the i-th diagonal element */
const B& operator[](int i) const {return data_[i];}
/** \brief y += Ax */
template <class X, class Y>
void umv(const X& x, Y& y) const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment