Skip to content
Snippets Groups Projects
Select Git revision
  • 3eb7a332f7d0f391be64bb00299bc12926e77622
  • master default protected
  • ddm_closed
  • newGmshLib
  • KSPGetResidualHistoryFix
  • constComparatorFix
  • q3dPML
  • lua
8 results

LuaFunctionSpace.h

Blame
  • functionDerivator.h 511 B
    #ifndef _FUNCTION_DERIVATOR_H_
    #define _FUNCTION_DERIVATOR_H_
    
    #include "fullMatrix.h"
    #include "function.h"
    
    class functionDerivator {
      dataCacheDouble &_f,&_x;
      fullMatrix<double> _fRef, _xRef, _dfdx;
      double _epsilon;
      public:
      functionDerivator (dataCacheDouble &f, dataCacheDouble &x, double epsilon):
        _f(f),
        _x(x),
        _epsilon(epsilon)
        {}
      const fullMatrix<double> &compute();
      inline double get(int iQP, int iF, int iX) 
      {
        return _dfdx(iQP, iF*_xRef.size2()+iX);
      }
    };
    
    #endif