Thyra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
support
operator_vector
adapter_support
Thyra_SpmdMultiVectorDefaultBase_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_SPMD_MULTI_VECTOR_DEFAULT_BASE_DECL_HPP
11
#define THYRA_SPMD_MULTI_VECTOR_DEFAULT_BASE_DECL_HPP
12
13
#include "Thyra_SpmdMultiVectorBase.hpp"
14
#include "Thyra_MultiVectorAdapterBase_decl.hpp"
15
#include "
Teuchos_BLAS.hpp
"
16
17
18
namespace
Thyra {
19
20
65
template
<
class
Scalar>
66
class
SpmdMultiVectorDefaultBase
67
:
virtual
public
SpmdMultiVectorBase
<Scalar>,
68
virtual
public
MultiVectorAdapterBase
<Scalar>
69
{
70
public
:
71
74
76
SpmdMultiVectorDefaultBase
();
77
79
82
84
RCP< const ScalarProdVectorSpaceBase<Scalar>
>
rangeScalarProdVecSpc
()
const
;
85
87
88
protected
:
89
92
94
RTOpPack::SubMultiVectorView<Scalar>
getNonconstLocalSubMultiVectorImpl
();
95
97
RTOpPack::ConstSubMultiVectorView<Scalar>
getLocalSubMultiVectorImpl
()
const
;
98
100
103
104
void
mvMultiReductApplyOpImpl
(
105
const
RTOpPack::RTOpT<Scalar>
&primary_op,
106
const
ArrayView
<
const
Ptr
<
const
MultiVectorBase<Scalar>
> > &multi_vecs,
107
const
ArrayView
<
const
Ptr
<
MultiVectorBase<Scalar>
> > &targ_multi_vecs,
108
const
ArrayView
<
const
Ptr<RTOpPack::ReductTarget>
> &reduct_objs,
109
const
Ordinal primary_global_offset
110
)
const
;
112
void
acquireDetachedMultiVectorViewImpl
(
113
const
Range1D
&rowRng,
114
const
Range1D
&colRng
115
,
RTOpPack::ConstSubMultiVectorView<Scalar>
*sub_mv
116
)
const
;
118
void
releaseDetachedMultiVectorViewImpl
(
119
RTOpPack::ConstSubMultiVectorView<Scalar>
* sub_mv
120
)
const
;
122
void
acquireNonconstDetachedMultiVectorViewImpl
(
123
const
Range1D
&rowRng,
124
const
Range1D
&colRng,
125
RTOpPack::SubMultiVectorView<Scalar>
*sub_mv
126
);
128
void
commitNonconstDetachedMultiVectorViewImpl
(
129
RTOpPack::SubMultiVectorView<Scalar>
* sub_mv
130
);
132
135
141
void
euclideanApply
(
142
const
EOpTransp M_trans,
143
const
MultiVectorBase<Scalar>
&X,
144
const
Ptr
<
MultiVectorBase<Scalar>
> &Y,
145
const
Scalar alpha,
146
const
Scalar beta
147
)
const
;
148
150
153
162
virtual
void
updateSpmdSpace
();
163
168
Range1D
validateRowRange
(
const
Range1D
& rowRng )
const
;
169
174
Range1D
validateColRange
(
const
Range1D
& rowCol )
const
;
175
177
178
private
:
179
180
// ///////////////////////////////////////
181
// Private data members
182
183
mutable
bool
in_applyOp_;
184
185
mutable
Teuchos::BLAS<int,Scalar>
blas_;
186
187
// cached
188
Ordinal globalDim_;
189
Ordinal localOffset_;
190
Ordinal localSubDim_;
191
Ordinal numCols_;
192
193
};
// end class SpmdMultiVectorDefaultBase
194
195
196
}
// end namespace Thyra
197
198
199
#endif
// THYRA_SPMD_MULTI_VECTOR_DEFAULT_BASE_DECL_HPP
Teuchos_BLAS.hpp
RTOpPack::ConstSubMultiVectorView
RTOpPack::RTOpT
RTOpPack::SubMultiVectorView
Teuchos::ArrayView
Teuchos::BLAS
Teuchos::Ptr
Teuchos::RCP
Thyra::MultiVectorAdapterBase
Node subclass for MultiVectorBase subclasses that allows the insertion of an application defined scal...
Definition
Thyra_MultiVectorAdapterBase_decl.hpp:36
Thyra::MultiVectorBase
Interface for a collection of column vectors called a multi-vector.
Definition
Thyra_MultiVectorBase_decl.hpp:464
Thyra::SpmdMultiVectorBase
Base interface class for SPMD multi-vectors.
Definition
Thyra_SpmdMultiVectorBase.hpp:36
Thyra::SpmdMultiVectorDefaultBase::rangeScalarProdVecSpc
RCP< const ScalarProdVectorSpaceBase< Scalar > > rangeScalarProdVecSpc() const
Returns spmdSpace.
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:59
Thyra::SpmdMultiVectorDefaultBase::SpmdMultiVectorDefaultBase
SpmdMultiVectorDefaultBase()
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:45
Thyra::SpmdMultiVectorDefaultBase::validateRowRange
Range1D validateRowRange(const Range1D &rowRng) const
Validate and resize the row range.
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:654
Thyra::SpmdMultiVectorDefaultBase::validateColRange
Range1D validateColRange(const Range1D &rowCol) const
Validate and resize the column range.
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:670
Thyra::SpmdMultiVectorDefaultBase::releaseDetachedMultiVectorViewImpl
void releaseDetachedMultiVectorViewImpl(RTOpPack::ConstSubMultiVectorView< Scalar > *sub_mv) const
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:233
Thyra::SpmdMultiVectorDefaultBase::acquireDetachedMultiVectorViewImpl
void acquireDetachedMultiVectorViewImpl(const Range1D &rowRng, const Range1D &colRng, RTOpPack::ConstSubMultiVectorView< Scalar > *sub_mv) const
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:200
Thyra::SpmdMultiVectorDefaultBase::getNonconstLocalSubMultiVectorImpl
RTOpPack::SubMultiVectorView< Scalar > getNonconstLocalSubMultiVectorImpl()
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:72
Thyra::SpmdMultiVectorDefaultBase::euclideanApply
void euclideanApply(const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha, const Scalar beta) const
Uses GEMM() and Teuchos::reduceAll() to implement.
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:312
Thyra::SpmdMultiVectorDefaultBase::acquireNonconstDetachedMultiVectorViewImpl
void acquireNonconstDetachedMultiVectorViewImpl(const Range1D &rowRng, const Range1D &colRng, RTOpPack::SubMultiVectorView< Scalar > *sub_mv)
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:252
Thyra::SpmdMultiVectorDefaultBase::updateSpmdSpace
virtual void updateSpmdSpace()
Subclasses should call whenever the structure of the VectorSpaceBase changes.
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:633
Thyra::SpmdMultiVectorDefaultBase::mvMultiReductApplyOpImpl
void mvMultiReductApplyOpImpl(const RTOpPack::RTOpT< Scalar > &primary_op, const ArrayView< const Ptr< const MultiVectorBase< Scalar > > > &multi_vecs, const ArrayView< const Ptr< MultiVectorBase< Scalar > > > &targ_multi_vecs, const ArrayView< const Ptr< RTOpPack::ReductTarget > > &reduct_objs, const Ordinal primary_global_offset) const
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:112
Thyra::SpmdMultiVectorDefaultBase::getLocalSubMultiVectorImpl
RTOpPack::ConstSubMultiVectorView< Scalar > getLocalSubMultiVectorImpl() const
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:91
Thyra::SpmdMultiVectorDefaultBase::commitNonconstDetachedMultiVectorViewImpl
void commitNonconstDetachedMultiVectorViewImpl(RTOpPack::SubMultiVectorView< Scalar > *sub_mv)
Definition
Thyra_SpmdMultiVectorDefaultBase_def.hpp:290
Thyra::Range1D
Teuchos::Range1D Range1D
Definition
Thyra_OperatorVectorTypes.hpp:65
Generated by
1.17.0