DOLFIN
DOLFIN C++ interface
Classes | Public Member Functions | List of all members
dolfin::GenericLinearAlgebraFactory Class Referenceabstract

Base class for LinearAlgebra factories. More...

#include <GenericLinearAlgebraFactory.h>

Inheritance diagram for dolfin::GenericLinearAlgebraFactory:
Inheritance graph
[legend]

Classes

class  NotImplementedLinearOperator
 

Public Member Functions

 GenericLinearAlgebraFactory ()
 Constructor.
 
virtual ~GenericLinearAlgebraFactory ()
 Destructor.
 
virtual std::shared_ptr< GenericMatrixcreate_matrix (MPI_Comm comm) const =0
 Create empty matrix.
 
virtual std::shared_ptr< GenericVectorcreate_vector (MPI_Comm comm) const =0
 Create empty vector.
 
virtual std::shared_ptr< TensorLayoutcreate_layout (MPI_Comm comm, std::size_t rank) const =0
 Create empty tensor layout.
 
virtual std::shared_ptr< GenericLinearOperatorcreate_linear_operator (MPI_Comm comm) const =0
 Create empty linear operator.
 
virtual std::shared_ptr< GenericLinearSolvercreate_lu_solver (MPI_Comm comm, std::string method) const =0
 Create LU solver.
 
virtual std::shared_ptr< GenericLinearSolvercreate_krylov_solver (MPI_Comm comm, std::string method, std::string preconditioner) const =0
 Create Krylov solver.
 
virtual std::map< std::string, std::string > lu_solver_methods () const
 
virtual std::map< std::string, std::string > krylov_solver_methods () const
 
virtual std::map< std::string, std::string > krylov_solver_preconditioners () const
 

Detailed Description

Base class for LinearAlgebra factories.

Member Function Documentation

◆ krylov_solver_methods()

virtual std::map<std::string, std::string> dolfin::GenericLinearAlgebraFactory::krylov_solver_methods ( ) const
inlinevirtual

Return a list of available Krylov solver methods. This function should be overloaded by subclass if non-empty.

Reimplemented in dolfin::EigenFactory, dolfin::PETScFactory, dolfin::DefaultFactory, and dolfin::TpetraFactory.

◆ krylov_solver_preconditioners()

virtual std::map<std::string, std::string> dolfin::GenericLinearAlgebraFactory::krylov_solver_preconditioners ( ) const
inlinevirtual

Return a list of available preconditioners. This function should be overloaded by subclass if non-empty.

Reimplemented in dolfin::EigenFactory, dolfin::PETScFactory, dolfin::DefaultFactory, and dolfin::TpetraFactory.

◆ lu_solver_methods()

virtual std::map<std::string, std::string> dolfin::GenericLinearAlgebraFactory::lu_solver_methods ( ) const
inlinevirtual

Return a list of available LU solver methods. This function should be overloaded by subclass if non-empty.

Reimplemented in dolfin::EigenFactory, dolfin::PETScFactory, dolfin::DefaultFactory, and dolfin::TpetraFactory.


The documentation for this class was generated from the following file: