42 #ifndef __Anasazi_StubTsqrAdapter_hpp 43 #define __Anasazi_StubTsqrAdapter_hpp 46 #include <Teuchos_ParameterListAcceptorDefaultBase.hpp> 47 #include <Teuchos_ScalarTraits.hpp> 48 #include <Teuchos_SerialDenseMatrix.hpp> 49 #include <Teuchos_TypeNameTraits.hpp> 83 template<
class MultiVectorType>
86 typedef MultiVectorType MV;
87 typedef double scalar_type;
88 typedef int ordinal_type;
89 typedef int node_type;
90 typedef Teuchos::SerialDenseMatrix<ordinal_type, scalar_type> dense_matrix_type;
91 typedef typename Teuchos::ScalarTraits<scalar_type>::magnitudeType magnitude_type;
101 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for " 102 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
103 <<
" is not yet implemented.");
109 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for " 110 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
111 <<
" is not yet implemented.");
118 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for " 119 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
120 <<
" is not yet implemented.");
124 Teuchos::RCP<const Teuchos::ParameterList>
127 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for " 128 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
129 <<
" is not yet implemented.");
136 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for " 137 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
138 <<
" is not yet implemented.");
145 dense_matrix_type& R,
146 const bool forceNonnegativeDiagonal=
false)
148 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for " 149 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
150 <<
" is not yet implemented.");
156 dense_matrix_type& R,
157 const magnitude_type& tol)
171 #endif // __Anasazi_StubTsqrAdapter_hpp Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Get list of valid default parameters (stub; throws std::logic_error).
int revealRank(MV &Q, dense_matrix_type &R, const magnitude_type &tol)
Rank-revealing decomposition (stub; does nothing).
StubTsqrAdapter(const Teuchos::RCP< Teuchos::ParameterList > &plist)
Constructor (that accepts a parameter list).
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package...
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).
Anasazi header file which uses auto-configuration information to include necessary C++ headers...
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &plist)
Set parameters (stub; throws std::logic_error).
StubTsqrAdapter()
Default constructor (stub; throws std::logic_error).
"Stub" TSQR adaptor for unsupported multivector types.
StubTsqrAdapter(const StubTsqrAdapter &rhs)
Copy constructor (throws std::logic_error).