Skip to content
Snippets Groups Projects
Select Git revision
  • 19fd97896ca9f583ef279c3cae8701e32f396131
  • master default protected
  • NewDistributionGmshFWI
  • parametrizationSimpleWave
  • tuto_obstacle
  • everything
  • cleanup_configuuration_mesh
  • fix
  • source_estimation
  • unique_ptr
  • SobolevDirectionalFilter
  • OT
  • newPhysics
  • SimultaneousFrequency
  • SobolevDistance
  • BonesImaging
  • MultiParameter
  • UpdateAntho
  • v2.0
  • v1.0
20 results

directional_plot_partial.py

Blame
  • linearSystem.h 1.06 KiB
    // Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to <gmsh@geuz.org>.
    
    #ifndef _LINEAR_SYSTEM_H_
    #define _LINEAR_SYSTEM_H_
    
    // A class that encapsulates a linear system solver interface :
    // building a sparse matrix, solving a linear system
    class binding;
    
    template <class scalar>
    class linearSystem {
     public :
      linearSystem (){}
      virtual ~linearSystem (){}
      virtual bool isAllocated() const = 0;
      virtual void allocate(int nbRows) = 0;
      virtual void clear() = 0;
      virtual void addToMatrix(int _row, int _col, const scalar &val) = 0;
      virtual void getFromMatrix(int _row, int _col, scalar &val) const = 0;
      virtual void addToRightHandSide(int _row, const scalar &val) = 0;
      virtual void getFromRightHandSide(int _row, scalar &val) const = 0;
      virtual void getFromSolution(int _row, scalar &val) const = 0;
      virtual void zeroMatrix() = 0;
      virtual void zeroRightHandSide() = 0;
      virtual int systemSolve() = 0;
      static void registerBindings (binding*);
    };
    
    #endif