mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01: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:
parent
303e0b927d
commit
d83868fdbb
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user