Skip to content
Snippets Groups Projects
Commit ad5613ca authored by Robert K's avatar Robert K
Browse files

added method umv and renamed Operations.

parent 99d30932
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ namespace Dune
int N () const { return rows; }
int M () const { return cols; }
struct Plus
struct Add
{
template <class T>
void operator()( T& a, const T& b ) const
......@@ -95,7 +95,7 @@ namespace Dune
}
};
struct Minus
struct Substract
{
template <class T>
void operator()( T& a, const T& b ) const
......@@ -122,7 +122,13 @@ namespace Dune
template <class X, class Y>
void mmv ( const X& x, Y& y ) const
{
mult( x, y, Minus() );
mult( x, y, Substract() );
}
template <class X, class Y>
void umv ( const X& x, Y& y ) const
{
mult( x, y, Add() );
}
template <class X, class Y, class Op>
......
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