Commit 3f2e3f75 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

corrected pointer access in MatrixView

parent 3ab4ab82
...@@ -136,7 +136,7 @@ namespace MatVec { ...@@ -136,7 +136,7 @@ namespace MatVec {
{ {
T operator[](size_type c) const T operator[](size_type c) const
{ {
assert(0 <= c && c < mat_.M()); assert(0 <= c && c < mat_->M());
return c == r_ ? mat_->diagonal(r_) : T(0); return c == r_ ? mat_->diagonal(r_) : T(0);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment