Skip to content
Snippets Groups Projects
Select Git revision
  • fcceb04496ca569085a3518367b2a304187a73f0
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

functionDerivator.h

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    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