Skip to content
Snippets Groups Projects
Select Git revision
  • 5cbfa289546515953ec10d5cb085ca883a347e28
  • 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

GamePad.cpp

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