Thyra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
support
operator_vector
adapter_support
Thyra_EuclideanScalarProd_decl.hpp
1
// @HEADER
2
// *****************************************************************************
3
// Thyra: Interfaces and Support for Abstract Numerical Algorithms
4
//
5
// Copyright 2004 NTESS and the Thyra contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef THYRA_EUCLIDEAN_SCALAR_PROD_DECL_HPP
11
#define THYRA_EUCLIDEAN_SCALAR_PROD_DECL_HPP
12
13
14
#include "Thyra_ScalarProdBase_decl.hpp"
15
16
17
namespace
Thyra {
18
28
template
<
class
Scalar>
29
class
EuclideanScalarProd
:
public
ScalarProdBase
<Scalar> {
30
protected
:
31
34
36
virtual
bool
isEuclideanImpl
()
const
;
37
39
virtual
void
scalarProdsImpl
(
40
const
MultiVectorBase<Scalar>
& X,
const
MultiVectorBase<Scalar>
& Y,
41
const
ArrayView<Scalar>
&
scalarProds
42
)
const
;
43
45
46
};
47
48
49
}
// end namespace Thyra
50
51
52
#endif
// THYRA_EUCLIDEAN_SCALAR_PROD_DECL_HPP
Teuchos::ArrayView
Thyra::EuclideanScalarProd
Concrete implementation of a scalar product for a Euclidean vector space (i.e. using the dot product)...
Definition
Thyra_EuclideanScalarProd_decl.hpp:29
Thyra::EuclideanScalarProd::isEuclideanImpl
virtual bool isEuclideanImpl() const
Returns true.
Definition
Thyra_EuclideanScalarProd_def.hpp:22
Thyra::EuclideanScalarProd::scalarProdsImpl
virtual void scalarProdsImpl(const MultiVectorBase< Scalar > &X, const MultiVectorBase< Scalar > &Y, const ArrayView< Scalar > &scalarProds) const
Simply calls dots(X,Y,scalar_prods).
Definition
Thyra_EuclideanScalarProd_def.hpp:29
Thyra::MultiVectorBase
Interface for a collection of column vectors called a multi-vector.
Definition
Thyra_MultiVectorBase_decl.hpp:464
Thyra::ScalarProdBase
Abstract interface for scalar products.
Definition
Thyra_ScalarProdBase_decl.hpp:58
Thyra::ScalarProdBase::scalarProds
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.
Definition
Thyra_ScalarProdBase_decl.hpp:132
Generated by
1.17.0