Anasazi  Version of the Day
AnasaziTsqrAdaptor.hpp
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Anasazi: Block Eigensolvers Package
5 // Copyright (2010) Sandia Corporation
6 //
7 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
8 // license for use of this work by or on behalf of the U.S. Government.
9 //
10 // This library is free software; you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as
12 // published by the Free Software Foundation; either version 2.1 of the
13 // License, or (at your option) any later version.
14 //
15 // This library is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
23 // USA
24 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
25 //
26 // ***********************************************************************
27 // @HEADER
28 
29 #ifndef __Anasazi_TsqrAdaptor_hpp
30 #define __Anasazi_TsqrAdaptor_hpp
31 
32 #include "TsqrAdaptor.hpp"
33 #include "TsqrRandomizer.hpp"
34 
37 
38 namespace Anasazi {
41  template< class ScalarType, class MultiVectorType >
43  {
44  public:
45  typedef TSQR::Trilinos::TsqrAdaptor< typename MultiVectorType::scalar_type,
46  typename MultiVectorType::local_ordinal_type,
47  typename MultiVectorType::global_ordinal_type,
48  typename MultiVectorType::node_type > adaptor_type;
49  };
50 
51  // FIXME mfh 14 Jul 2010: this belongs in ../epetra/src
52  // template <>
53  // class TsqrAdaptor< double, Epetra_MultiVector >
54  // {
55  // public:
56  // typedef TsqrEpetraAdaptor adaptor_type;
57  // };
58 
59 } // namespace Anasazi
60 
61 #endif // __Anasazi_TsqrAdaptor_hpp
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package...
Map from multivector class to TSQR adaptor class.