42#ifndef TRILINOS_DETAILS_LINEARSOLVER_HPP
43#define TRILINOS_DETAILS_LINEARSOLVER_HPP
56#include "TeuchosRemainder_config.h"
145template<
class MV,
class OP,
class NormType>
203 virtual void solve (MV& X,
const MV& B) = 0;
Reference-counted pointer class and non-member templated function implementations.
Smart reference counting pointer class for automatic garbage collection.
Interface for a method for solving linear system(s) AX=B.
virtual void numeric()=0
Set up any part of the solve that depends on both the structure and the numerical values of the input...
virtual void symbolic()=0
Set up any part of the solve that depends on the structure of the input matrix, but not its numerical...
virtual void setMatrix(const Teuchos::RCP< const OP > &A)=0
Set the solver's matrix.
virtual void solve(MV &X, const MV &B)=0
Solve the linear system(s) AX=B.
virtual Teuchos::RCP< const OP > getMatrix() const =0
Get a pointer to this solver's matrix.
virtual ~LinearSolver()
Destructor (virtual for memory safety of derived classes).
virtual void setParameters(const Teuchos::RCP< Teuchos::ParameterList > ¶ms)=0
Set this solver's parameters.
Namespace of implementation details.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Namespace of things generally useful to many Trilinos packages.