29#ifndef __Belos_StubTsqrAdapter_hpp
30#define __Belos_StubTsqrAdapter_hpp
33#include <Teuchos_ParameterListAcceptorDefaultBase.hpp>
34#include <Teuchos_ScalarTraits.hpp>
35#include <Teuchos_SerialDenseMatrix.hpp>
36#include <Teuchos_TypeNameTraits.hpp>
70 template<
class MultiVectorType>
73 typedef MultiVectorType
MV;
78 typedef typename Teuchos::ScalarTraits<scalar_type>::magnitudeType
magnitude_type;
88 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
89 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
90 <<
" is not yet implemented.");
96 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
97 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
98 <<
" is not yet implemented.");
105 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
106 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
107 <<
" is not yet implemented.");
111 Teuchos::RCP<const Teuchos::ParameterList>
114 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
115 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
116 <<
" is not yet implemented.");
123 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
124 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
125 <<
" is not yet implemented.");
133 const bool forceNonnegativeDiagonal=
false)
135 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
136 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
137 <<
" is not yet implemented.");
Belos header file which uses auto-configuration information to include necessary C++ headers.
"Stub" TSQR adaptor for unsupported multivector types.
Teuchos::SerialDenseMatrix< ordinal_type, scalar_type > dense_matrix_type
int revealRank(MV &Q, dense_matrix_type &R, const magnitude_type &tol)
Rank-revealing decomposition (stub; does nothing).
StubTsqrAdapter(const StubTsqrAdapter &rhs)
Copy constructor (throws std::logic_error).
StubTsqrAdapter()
Default constructor (stub; throws std::logic_error).
void factorExplicit(MV &A, MV &Q, dense_matrix_type &R, const bool forceNonnegativeDiagonal=false)
Compute QR factorization [Q,R] = qr(A,0) (stub; throws std::logic_error).
StubTsqrAdapter(const Teuchos::RCP< Teuchos::ParameterList > &plist)
Constructor (that accepts a parameter list).
Teuchos::ScalarTraits< scalar_type >::magnitudeType magnitude_type
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Get list of valid default parameters (stub; throws std::logic_error).
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &plist)
Set parameters (stub; throws std::logic_error).
Namespace containing implementation details of Belos solvers.