Abstract base class for function objects.  
 More...
#include <FunctionBase.h>
Abstract base class for function objects. 
One needs to sublclass this abstract class to implement their own functions using a backend not supported by QUESO. If QUESO is linked against libMesh (and libMesh was compiled with SLEPc), you may use LibMeshFunction. 
Definition at line 46 of file FunctionBase.h.
 
      
        
          | QUESO::FunctionBase::FunctionBase  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | QUESO::FunctionBase::~FunctionBase  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | virtual void QUESO::FunctionBase::add  | 
          ( | 
          double  | 
          scale,  | 
         
        
           | 
           | 
          const FunctionBase &  | 
          rhs  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
Execute this += scale * rhs. 
 
 
  
  
      
        
          | virtual double QUESO::FunctionBase::L2_norm  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Return the L2-norm of this. 
 
 
Pointwise multiply f1 and f2 and store the result in *this. 
 
 
  
  
      
        
          | virtual void QUESO::FunctionBase::save_function  | 
          ( | 
          const std::string &  | 
          filename,  | 
         
        
           | 
           | 
          double  | 
          time  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
pure virtual   | 
  
 
Save the current function to an Exodus file called filename. time is the time to attach to the function and is usually the iteration number. 
 
 
  
  
      
        
          | virtual void QUESO::FunctionBase::scale  | 
          ( | 
          double  | 
          scale | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | virtual void QUESO::FunctionBase::zero  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Set this to zero everywhere. 
 
 
  
  
      
        
          | virtual boost::shared_ptr<FunctionBase> QUESO::FunctionBase::zero_clone  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Create a zero function copy of this and return pointer to it. 
Create a new instance of FunctionBase representing the function that is identically zero (by copying this) everywhere and return a boost shared pointer to it 
 
 
The documentation for this class was generated from the following files: