1
// Copyright (C) 2004-2007 Anders Logg and Garth N. Wells.
2
// Licensed under the GNU LGPL Version 2.1.
4
// Modified by Garth N. Wells, 2006.
6
// First added: 2004-06-19
7
// Last changed: 2006-08-07
9
#ifndef __LINEAR_SOLVER_H
10
#define __LINEAR_SOLVER_H
12
#include <dolfin/main/constants.h>
19
/// This class defines the interfaces for default linear solvers for
20
/// systems of the form Ax = b.
30
virtual ~LinearSolver() {}
32
/// Solve linear system Ax = b
33
virtual uint solve(const Matrix& A, Vector& x, const Vector& b) = 0;