23 #ifndef GEOSX_LINEARALGEBRA_INTERFACES_LINEAROPERATOR_HPP_ 24 #define GEOSX_LINEARALGEBRA_INTERFACES_LINEAROPERATOR_HPP_ 36 template<
typename VECTOR >
76 r.axpby( 1.0, b, -1.0 );
94 #endif //GEOSX_LINEARALGEBRA_INTERFACES_LINEAROPERATOR_HPP_ long long int globalIndex
Global index type (for indexing objects across MPI partitions).
virtual globalIndex numGlobalCols() const =0
Get the number of global columns.
LinearOperator()=default
Constructor.
virtual void residual(Vector const &x, Vector const &b, Vector &r) const
Compute residual r = Ax - b.
virtual globalIndex numGlobalRows() const =0
Get the number of global rows.
virtual void apply(Vector const &src, Vector &dst) const =0
Apply operator to a vector.
Abstract base class for linear operators.
TrilinosInterface ::ParallelVector Vector
Alias for template parameter.
virtual ~LinearOperator()=default
Destructor.