Skip to content
Snippets Groups Projects
Commit 2a9a2a2f authored by Steffen Müthing's avatar Steffen Müthing
Browse files

[Densematrix] Explicitly cast '0' to field type to support user-defined field types

parent be60110b
No related branches found
No related tags found
No related merge requests found
......@@ -396,7 +396,7 @@ namespace Dune
#endif
for (size_type i=0; i<rows(); ++i)
{
y[i] = 0;
y[i] = value_type(0);
for (size_type j=0; j<cols(); j++)
y[i] += (*this)[i][j] * x[j];
}
......@@ -418,7 +418,7 @@ namespace Dune
#endif
for( size_type i = 0; i < cols(); ++i )
{
y[ i ] = 0;
y[ i ] = value_type(0);
for( size_type j = 0; j < rows(); ++j )
y[ i ] += (*this)[ j ][ i ] * x[ j ];
}
......
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