DefaultFactory.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class DefaultFactory

Parent class(es)

DefaultFactory()

Constructor

std::shared_ptr<GenericMatrix> create_matrix(MPI_Comm comm) const

Create empty matrix

std::shared_ptr<GenericVector> create_vector(MPI_Comm comm) const

Create empty vector

std::shared_ptr<TensorLayout> create_layout(std::size_t rank) const

Create empty tensor layout

std::shared_ptr<GenericLinearOperator> create_linear_operator(MPI_Comm comm) const

Create empty linear operator

std::shared_ptr<dolfin::GenericLUSolver> create_lu_solver(MPI_Comm comm, std::string method) const

Create LU solver

std::shared_ptr<dolfin::GenericLinearSolver> create_krylov_solver(MPI_Comm comm, std::string method, std::string preconditioner) const

Create Krylov solver

std::map<std::string, std::string> lu_solver_methods() const

Return a list of available LU solver methods

std::map<std::string, std::string> krylov_solver_methods() const

Return a list of available Krylov solver methods

std::map<std::string, std::string> krylov_solver_preconditioners() const

Return a list of available preconditioners

static GenericLinearAlgebraFactory &factory()

Return instance of default backend