10#ifndef __Anasazi_StubTsqrAdapter_hpp
11#define __Anasazi_StubTsqrAdapter_hpp
14#include <Teuchos_ParameterListAcceptorDefaultBase.hpp>
15#include <Teuchos_ScalarTraits.hpp>
16#include <Teuchos_SerialDenseMatrix.hpp>
17#include <Teuchos_TypeNameTraits.hpp>
51 template<
class MultiVectorType>
54 typedef MultiVectorType MV;
55 typedef double scalar_type;
56 typedef int ordinal_type;
57 typedef int node_type;
58 typedef Teuchos::SerialDenseMatrix<ordinal_type, scalar_type> dense_matrix_type;
59 typedef typename Teuchos::ScalarTraits<scalar_type>::magnitudeType magnitude_type;
69 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
70 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
71 <<
" is not yet implemented.");
77 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
78 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
79 <<
" is not yet implemented.");
86 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
87 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
88 <<
" is not yet implemented.");
92 Teuchos::RCP<const Teuchos::ParameterList>
95 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
96 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
97 <<
" is not yet implemented.");
104 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
105 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
106 <<
" is not yet implemented.");
113 dense_matrix_type& R,
114 const bool forceNonnegativeDiagonal=
false)
116 TEUCHOS_TEST_FOR_EXCEPTION(
true, std::logic_error,
"TSQR adapter for "
117 "multivector type \"" << Teuchos::TypeNameTraits<MV>::name()
118 <<
" is not yet implemented.");
124 dense_matrix_type& R,
125 const magnitude_type& tol)
Anasazi header file which uses auto-configuration information to include necessary C++ headers.
"Stub" TSQR adaptor for unsupported multivector types.
int revealRank(MV &Q, dense_matrix_type &R, const magnitude_type &tol)
Rank-revealing decomposition (stub; does nothing).
StubTsqrAdapter()
Default constructor (stub; throws std::logic_error).
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Get list of valid default parameters (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).
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &plist)
Set parameters (stub; throws std::logic_error).
StubTsqrAdapter(const Teuchos::RCP< Teuchos::ParameterList > &plist)
Constructor (that accepts a parameter list).
StubTsqrAdapter(const StubTsqrAdapter &rhs)
Copy constructor (throws std::logic_error).
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package.