mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-02 21:14:32 +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:
		@@ -346,6 +346,13 @@ namespace Grid {
 | 
			
		||||
      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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user