Skip to content
Snippets Groups Projects
Commit f2fa15d9 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

fix for bug #346 in mv method.

[[Imported from SVN: r5072]]
parent 1aaa59d6
No related branches found
No related tags found
No related merge requests found
......@@ -243,9 +243,10 @@ namespace Dune {
if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
#endif
for (size_type i=0; i<n; i++)
for (size_type j=0; j<m; j++)
y[i] = (*this)[i][j] * x[j];
for (size_type i=0; i<n; ++i)
{
y[i] = (*this)[i] * x;
}
}
//! y += A x
......
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