Anasazi  Version of the Day
AnasaziGenOrthoManager.hpp
Go to the documentation of this file.
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Anasazi: Block Eigensolvers Package
5 // Copyright (2004) 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 
34 #ifndef ANASAZI_GENORTHOMANAGER_HPP
35 #define ANASAZI_GENORTHOMANAGER_HPP
36 
50 #include "AnasaziConfigDefs.hpp"
51 #include "AnasaziTypes.hpp"
55 
56 namespace Anasazi {
57 
58  template <class ScalarType, class MV, class OP>
59  class GenOrthoManager : public MatOrthoManager<ScalarType,MV,OP> {
60  public:
62 
63  GenOrthoManager(Teuchos::RCP<const OP> Op = Teuchos::null);
65 
67  virtual ~GenOrthoManager() {};
69 
70 
72 
73 
152  virtual void projectGen(
153  MV &S,
154  Teuchos::Array<Teuchos::RCP<const MV> > X,
155  Teuchos::Array<Teuchos::RCP<const MV> > Y,
156  bool isBiOrtho,
157  Teuchos::Array<Teuchos::RCP<Teuchos::SerialDenseMatrix<int,ScalarType> > > C
158  = Teuchos::tuple(Teuchos::RCP< Teuchos::SerialDenseMatrix<int,ScalarType> >(Teuchos::null)),
159  Teuchos::RCP<MV> MS = Teuchos::null,
160  Teuchos::Array<Teuchos::RCP<const MV> > MX = Teuchos::tuple(Teuchos::RCP<const MV>(Teuchos::null)),
161  Teuchos::Array<Teuchos::RCP<const MV> > MY = Teuchos::tuple(Teuchos::RCP<const MV>(Teuchos::null))
162  ) const = 0;
163 
164 
258  virtual int projectAndNormalizeGen (
259  MV &S,
260  Teuchos::Array<Teuchos::RCP<const MV> > X,
261  Teuchos::Array<Teuchos::RCP<const MV> > Y,
262  bool isBiOrtho,
263  Teuchos::Array<Teuchos::RCP<Teuchos::SerialDenseMatrix<int,ScalarType> > > C
264  = Teuchos::tuple(Teuchos::RCP< Teuchos::SerialDenseMatrix<int,ScalarType> >(Teuchos::null)),
265  Teuchos::RCP<Teuchos::SerialDenseMatrix<int,ScalarType> > B = Teuchos::null,
266  Teuchos::RCP<MV> MS = Teuchos::null,
267  Teuchos::Array<Teuchos::RCP<const MV> > MX = Teuchos::tuple(Teuchos::RCP<const MV>(Teuchos::null)),
268  Teuchos::Array<Teuchos::RCP<const MV> > MY = Teuchos::tuple(Teuchos::RCP<const MV>(Teuchos::null))
269  ) const = 0;
270 
272 
273  };
274 
275  template <class ScalarType,class MV,class OP>
277  : MatOrthoManager<ScalarType,MV,OP>(Op) {}
278 
279 } // end of Anasazi namespace
280 
281 
282 #endif
283 
284 // end of file AnasaziGenOrthoManager.hpp
Templated virtual class for providing orthogonalization/orthonormalization methods with matrix-based ...
virtual int projectAndNormalizeGen(MV &S, Teuchos::Array< Teuchos::RCP< const MV > > X, Teuchos::Array< Teuchos::RCP< const MV > > Y, bool isBiOrtho, Teuchos::Array< Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > > C=Teuchos::tuple(Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > >(Teuchos::null)), Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > B=Teuchos::null, Teuchos::RCP< MV > MS=Teuchos::null, Teuchos::Array< Teuchos::RCP< const MV > > MX=Teuchos::tuple(Teuchos::RCP< const MV >(Teuchos::null)), Teuchos::Array< Teuchos::RCP< const MV > > MY=Teuchos::tuple(Teuchos::RCP< const MV >(Teuchos::null))) const =0
Applies a series of generic projectors and returns an orthonormal basis for the residual data.
Declaration of basic traits for the multivector type.
GenOrthoManager(Teuchos::RCP< const OP > Op=Teuchos::null)
Default constructor.
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package.
Anasazi's templated virtual class for providing routines for orthogonalization and orthonormalization...
Virtual base class which defines basic traits for the operator type.
Anasazi header file which uses auto-configuration information to include necessary C++ headers.
virtual ~GenOrthoManager()
Destructor.
virtual void projectGen(MV &S, Teuchos::Array< Teuchos::RCP< const MV > > X, Teuchos::Array< Teuchos::RCP< const MV > > Y, bool isBiOrtho, Teuchos::Array< Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > > C=Teuchos::tuple(Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > >(Teuchos::null)), Teuchos::RCP< MV > MS=Teuchos::null, Teuchos::Array< Teuchos::RCP< const MV > > MX=Teuchos::tuple(Teuchos::RCP< const MV >(Teuchos::null)), Teuchos::Array< Teuchos::RCP< const MV > > MY=Teuchos::tuple(Teuchos::RCP< const MV >(Teuchos::null))) const =0
Applies a series of generic projectors.
Types and exceptions used within Anasazi solvers and interfaces.