mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-28 08:23:19 +00:00
Identity linear op added -- useful in circumstances where a linear op may or may not be needed.
Supply a trivial one if not needed
This commit is contained in:
1 parent
303e0b927d
commit
d83868fdbb
1 file changed
+7
@@ -346,6 +346,13 @@ namespace Grid {
|
|||||||
virtual void operator() (const Field &in, Field &out) = 0;
|
virtual void operator() (const Field &in, Field &out) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<class Field> class IdentityLinearFunction : public LinearFunction<Field> {
|
||||||
|
public:
|
||||||
|
void operator() (const Field &in, Field &out){
|
||||||
|
out = in;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////
|
||||||
// Base classes for Multishift solvers for operators
|
// Base classes for Multishift solvers for operators
|
||||||
|
|||||||
Reference in new issue
Block a user