|
Anasazi
Version of the Day
|
00001 // @HEADER 00002 // *********************************************************************** 00003 // 00004 // Anasazi: Block Eigensolvers Package 00005 // Copyright (2004) Sandia Corporation 00006 // 00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00008 // license for use of this work by or on behalf of the U.S. Government. 00009 // 00010 // This library is free software; you can redistribute it and/or modify 00011 // it under the terms of the GNU Lesser General Public License as 00012 // published by the Free Software Foundation; either version 2.1 of the 00013 // License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, but 00016 // WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 00023 // USA 00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 00025 // 00026 // *********************************************************************** 00027 // @HEADER 00028 00034 #ifndef ANASAZI_GENORTHOMANAGER_HPP 00035 #define ANASAZI_GENORTHOMANAGER_HPP 00036 00050 #include "AnasaziConfigDefs.hpp" 00051 #include "AnasaziTypes.hpp" 00052 #include "AnasaziMatOrthoManager.hpp" 00053 #include "AnasaziMultiVecTraits.hpp" 00054 #include "AnasaziOperatorTraits.hpp" 00055 00056 namespace Anasazi { 00057 00058 template <class ScalarType, class MV, class OP> 00059 class GenOrthoManager : public MatOrthoManager<ScalarType,MV,OP> { 00060 public: 00062 00063 00064 GenOrthoManager(Teuchos::RCP<const OP> Op = Teuchos::null); 00065 00067 virtual ~GenOrthoManager() {}; 00069 00070 00072 00073 00152 virtual void projectGen( 00153 MV &S, 00154 Teuchos::Array<Teuchos::RCP<const MV> > X, 00155 Teuchos::Array<Teuchos::RCP<const MV> > Y, 00156 bool isBiOrtho, 00157 Teuchos::Array<Teuchos::RCP<Teuchos::SerialDenseMatrix<int,ScalarType> > > C 00158 = Teuchos::tuple(Teuchos::RCP< Teuchos::SerialDenseMatrix<int,ScalarType> >(Teuchos::null)), 00159 Teuchos::RCP<MV> MS = Teuchos::null, 00160 Teuchos::Array<Teuchos::RCP<const MV> > MX = Teuchos::tuple(Teuchos::RCP<const MV>(Teuchos::null)), 00161 Teuchos::Array<Teuchos::RCP<const MV> > MY = Teuchos::tuple(Teuchos::RCP<const MV>(Teuchos::null)) 00162 ) const = 0; 00163 00164 00258 virtual int projectAndNormalizeGen ( 00259 MV &S, 00260 Teuchos::Array<Teuchos::RCP<const MV> > X, 00261 Teuchos::Array<Teuchos::RCP<const MV> > Y, 00262 bool isBiOrtho, 00263 Teuchos::Array<Teuchos::RCP<Teuchos::SerialDenseMatrix<int,ScalarType> > > C 00264 = Teuchos::tuple(Teuchos::RCP< Teuchos::SerialDenseMatrix<int,ScalarType> >(Teuchos::null)), 00265 Teuchos::RCP<Teuchos::SerialDenseMatrix<int,ScalarType> > B = Teuchos::null, 00266 Teuchos::RCP<MV> MS = Teuchos::null, 00267 Teuchos::Array<Teuchos::RCP<const MV> > MX = Teuchos::tuple(Teuchos::RCP<const MV>(Teuchos::null)), 00268 Teuchos::Array<Teuchos::RCP<const MV> > MY = Teuchos::tuple(Teuchos::RCP<const MV>(Teuchos::null)) 00269 ) const = 0; 00270 00272 00273 }; 00274 00275 template <class ScalarType,class MV,class OP> 00276 GenOrthoManager<ScalarType,MV,OP>::GenOrthoManager(Teuchos::RCP<const OP> Op) 00277 : MatOrthoManager<ScalarType,MV,OP>(Op) {} 00278 00279 } // end of Anasazi namespace 00280 00281 00282 #endif 00283 00284 // end of file AnasaziGenOrthoManager.hpp
1.7.6.1