42#ifndef THYRA_SCALAR_PROD_VECTOR_SPACE_BASE_DEF_HPP
43#define THYRA_SCALAR_PROD_VECTOR_SPACE_BASE_DEF_HPP
45#include "Thyra_ScalarProdVectorSpaceBase_decl.hpp"
46#include "Thyra_VectorSpaceDefaultBase.hpp"
47#include "Thyra_EuclideanScalarProd.hpp"
48#include "Thyra_AssertOp.hpp"
67 :scalarProd_(scalarProd_in.assert_not_null())
76 scalarProd_ = scalarProd_in.assert_not_null();
94 return scalarProd_->isEuclidean();
108 return scalarProd_->scalarProd(x,y);
112template<
class Scalar>
125 scalarProd_->scalarProds(X, Y, scalarProds_out);
Concrete implementation of a scalar product for a Euclidean vector space (i.e. using the dot product)...
virtual RCP< const VectorSpaceBase< Scalar > > range() const =0
Return a smart pointer for the range space for this operator.
virtual RCP< const VectorSpaceBase< Scalar > > domain() const =0
Return a smart pointer for the domain space for this operator.
Interface for a collection of column vectors called a multi-vector.
Abstract interface for scalar products.
bool isEuclidean() const
Returns getScalarProd()->isEuclidean()
Scalar scalarProd(const VectorBase< Scalar > &x, const VectorBase< Scalar > &y) const
Returns getScalarProd()->scalarProd(x,y)
ScalarProdVectorSpaceBase()
Construct to use dot product as the default.
void scalarProdsImpl(const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds_out) const
Calls getScalarProd()->scalarProds(X,Y,scalar_prods)
RCP< const ScalarProdBase< Scalar > > getScalarProd() const
Return the current scalar product.
virtual void setScalarProd(const RCP< const ScalarProdBase< Scalar > > &scalarProd)
Set a different scalar product.
Abstract interface for finite-dimensional dense vectors.
virtual RCP< const VectorSpaceBase< Scalar > > space() const =0
Return a smart pointer to the vector space that this vector belongs to.
#define THYRA_ASSERT_VEC_SPACES(FUNC_NAME, VS1, VS2)
This is a very useful macro that should be used to validate that two vector spaces are compatible.