14#ifndef BELOS_ORTHOMANAGER_HPP
15#define BELOS_ORTHOMANAGER_HPP
37#include "Teuchos_ScalarTraits.hpp"
38#include "Teuchos_RCP.hpp"
39#include "Teuchos_Array.hpp"
56 template <
class ScalarType,
class MV,
class DM = DefaultDenseMatrix<
int,ScalarType>>
58 public Teuchos::ParameterListAcceptorDefaultBase
81 virtual void innerProd(
const MV &
X,
const MV &Y, DM & Z )
const = 0;
96 virtual void norm (
const MV&
X, std::vector<
typename Teuchos::ScalarTraits<ScalarType>::magnitudeType>&
normvec)
const = 0;
134 Teuchos::Array<Teuchos::RCP<DM> > C,
135 Teuchos::ArrayView<Teuchos::RCP<const MV> >
Q)
const = 0;
151 virtual int normalize ( MV &
X, Teuchos::RCP<DM> B )
const = 0;
156 Teuchos::Array<Teuchos::RCP<DM>> C,
158 Teuchos::ArrayView<Teuchos::RCP<const MV> >
Q)
const = 0;
218 Teuchos::Array<Teuchos::RCP<DM>> C,
220 Teuchos::ArrayView<Teuchos::RCP<const MV> >
Q)
const
232 virtual typename Teuchos::ScalarTraits< ScalarType >::magnitudeType
237 virtual typename Teuchos::ScalarTraits<ScalarType>::magnitudeType
Belos header file which uses auto-configuration information to include necessary C++ headers.
Full specialization of Belos::DenseMatTraits for Kokkos::DualView with arbitrary scalarType....
Full specialization of Belos::DenseMatTraits for Teuchos::SerialDenseMatrix with ordinal type int and...
Collection of types and exceptions used within the Belos solvers.
Parent class to all Belos exceptions.
Alternative run-time polymorphic interface for operators.
Exception thrown to signal error in an orthogonalization manager method.
OrthoError(const std::string &what_arg)
Belos's templated virtual class for providing routines for orthogonalization and orthonormzalition of...
virtual ~OrthoManager()
Destructor.
virtual int projectAndNormalizeImpl(MV &X, Teuchos::Array< Teuchos::RCP< DM > > C, Teuchos::RCP< DM > B, Teuchos::ArrayView< Teuchos::RCP< const MV > > Q) const =0
virtual int normalize(MV &X, Teuchos::RCP< DM > B) const =0
This method takes a multivector X and attempts to compute an orthonormal basis for ,...
virtual void setLabel(const std::string &label)=0
This method sets the label used by the timers in the orthogonalization manager.
OrthoManager()
Default constructor.
virtual Teuchos::ScalarTraits< ScalarType >::magnitudeType orthogError(const MV &X1, const MV &X2) const =0
This method computes the error in orthogonality of two multivectors.
virtual void norm(const MV &X, std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &normvec) const =0
Compute the norm(s) of the column(s) of X.
virtual Teuchos::ScalarTraits< ScalarType >::magnitudeType orthonormError(const MV &X) const =0
This method computes the error in orthonormality of a multivector.
virtual void innerProd(const MV &X, const MV &Y, DM &Z) const =0
Provides the inner product defining the orthogonality concepts.
int projectAndNormalize(MV &X, Teuchos::Array< Teuchos::RCP< DM > > C, Teuchos::RCP< DM > B, Teuchos::ArrayView< Teuchos::RCP< const MV > > Q) const
Project X against the Q[i] and normalize X.
virtual const std::string & getLabel() const =0
This method returns the label being used by the timers in the orthogonalization manager.
virtual void project(MV &X, Teuchos::Array< Teuchos::RCP< DM > > C, Teuchos::ArrayView< Teuchos::RCP< const MV > > Q) const =0
Project X against the (orthogonal) entries of Q.