10#ifndef THYRA_DIAGONAL_LINEAR_OP_WITH_SOLVE_HPP
11#define THYRA_DIAGONAL_LINEAR_OP_WITH_SOLVE_HPP
13#include "Thyra_DefaultDiagonalLinearOpWithSolve_decl.hpp"
14#include "Thyra_DefaultDiagonalLinearOp.hpp"
15#include "Thyra_MultiVectorStdOps.hpp"
16#include "Thyra_VectorBase.hpp"
17#include "Thyra_TestingTools.hpp"
18#include "Teuchos_Assert.hpp"
50 EOpTransp M_trans)
const
53 return (ST::isComplex ? M_trans==
NOTRANS || M_trans==TRANS :
true);
69 const EOpTransp transp,
86 const Ordinal numCols = B.
domain()->dim();
89 for (Ordinal col_j = 0; col_j < numCols; ++col_j) {
100 (nonnull(solveCriteria) && !solveCriteria->solveMeasureType.useDefault()
bool solveSupportsSolveMeasureTypeImpl(EOpTransp M_trans, const SolveMeasureType &solveMeasureType) const
SolveStatus< Scalar > solveImpl(const EOpTransp transp, const MultiVectorBase< Scalar > &B, const Ptr< MultiVectorBase< Scalar > > &X, const Ptr< const SolveCriteria< Scalar > > solveCriteria) const
bool solveSupportsImpl(EOpTransp M_trans) const
DefaultDiagonalLinearOpWithSolve()
Constructs to uninitialized.
void initialize(const RCP< const VectorSpaceBase< Scalar > > &space)
Initialize given a vector space which allocates a vector internally.
RCP< const VectorBase< Scalar > > getDiag() const
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.
void assign(const Ptr< MultiVectorBase< Scalar > > &V, Scalar alpha)
V = alpha.
RCP< const VectorBase< Scalar > > col(Ordinal j) const
Calls colImpl().
Abstract interface for finite-dimensional dense vectors.
void ele_wise_divide(const Scalar &alpha, const VectorBase< Scalar > &x, const VectorBase< Scalar > &v, const Ptr< VectorBase< Scalar > > &y)
Element-wise division update: y(i) += alpha * x(i) / v(i), i = 0...y->space()->dim()-1.
#define TEUCHOS_ASSERT(assertion_test)
@ SOLVE_STATUS_CONVERGED
The requested solution criteria has likely been achieved.
@ SOLVE_STATUS_UNKNOWN
The final solution status is unknown but he solve did not totally fail.
NOTRANS
Type for the dimension of a vector space. `**/ typedef Teuchos::Ordinal Ordinal;.
Simple struct that defines the requested solution criteria for a solve.
Simple struct for the return status from a solve.
static ScalarMag unknownTolerance()
ESolveStatus solveStatus
The return status of the solve.
ScalarMag achievedTol
The maximum final tolerance actually achieved by the (block) linear solve. A value of unknownToleranc...