10 #ifndef THYRA_SCALAR_PROD_BASE_DECL_HPP
11 #define THYRA_SCALAR_PROD_BASE_DECL_HPP
13 #include "Thyra_OperatorVectorTypes.hpp"
14 #include "Teuchos_Describable.hpp"
57 template<
class Scalar>
171 return Teuchos::null;
182 #endif // THYRA_SCALAR_PROD_BASE_DECL_HPP
RCP< const LinearOpBase< Scalar > > getLinearOp() const
Return a linear operator representing the scalar product Q.
virtual bool isEuclideanImpl() const =0
bool isEuclidean() const
Return if this is a Euclidean (identity) scalar product is the same as the dot product.
void scalarProds(const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds_out) const
Return the scalar product of each column in two multi-vectors in the vector space.
Interface for a collection of column vectors called a multi-vector.
Abstract interface for finite-dimensional dense vectors.
virtual Scalar scalarProdImpl(const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) const
Default implementation calls scalarProdsImpl().
Scalar scalarProd(const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) const
Return the scalar product of two vectors in the vector space.
virtual RCP< const LinearOpBase< Scalar > > getLinearOpImpl() const
virtual void scalarProdsImpl(const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds_out) const =0