1
// Copyright (C) 2008 Anders Logg.
2
// Licensed under the GNU LGPL Version 2.1.
4
// First added: 2008-05-17
5
// Last changed: 2007-05-17
7
#ifndef __DEFAULT_FACTORY_H
8
#define __DEFAULT_FACTORY_H
10
#include "LinearAlgebraFactory.h"
15
class DefaultFactory : public LinearAlgebraFactory
23
virtual ~DefaultFactory() {}
25
/// Create empty matrix
26
virtual dolfin::GenericMatrix* createMatrix() const;
28
/// Create empty vector
29
virtual dolfin::GenericVector* createVector() const;
31
/// Create empty sparsity pattern
32
virtual dolfin::GenericSparsityPattern * createPattern() const;
36
// Return instance of default backend
37
LinearAlgebraFactory& factory() const;