AbstractLinAlgPack_MatrixOpNonsingTester.hpp

00001 // @HEADER
00002 // ***********************************************************************
00003 // 
00004 // Moocho: Multi-functional Object-Oriented arCHitecture for Optimization
00005 //                  Copyright (2003) 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov) 
00025 // 
00026 // ***********************************************************************
00027 // @HEADER
00028 
00029 #ifndef MATRIX_WITH_OP_NONSINGULAR_TESTER_H
00030 #define MATRIX_WITH_OP_NONSINGULAR_TESTER_H
00031 
00032 #include <iosfwd>
00033 
00034 #include "AbstractLinAlgPack_Types.hpp"
00035 #include "Teuchos_StandardMemberCompositionMacros.hpp"
00036 
00037 namespace AbstractLinAlgPack {
00038 
00051 class MatrixOpNonsingTester {
00052 public:
00053 
00056 
00058   enum ETestLevel {
00059     TEST_LEVEL_2_BLAS  = 1  
00060     ,TEST_LEVEL_3_BLAS = 2  
00061   };
00063   enum EPrintTestLevel {
00064     PRINT_NONE   = 0  
00065     ,PRINT_BASIC = 1  
00066     ,PRINT_MORE  = 2  
00067     ,PRINT_ALL   = 3  
00068   };
00069 
00071 
00074 
00076   STANDARD_MEMBER_COMPOSITION_MEMBERS( ETestLevel, test_level )
00078   STANDARD_MEMBER_COMPOSITION_MEMBERS( EPrintTestLevel, print_tests )
00080   STANDARD_MEMBER_COMPOSITION_MEMBERS( bool, dump_all )
00082   STANDARD_MEMBER_COMPOSITION_MEMBERS( bool, throw_exception )
00084   STANDARD_MEMBER_COMPOSITION_MEMBERS( size_type, num_random_tests )
00086   STANDARD_MEMBER_COMPOSITION_MEMBERS( value_type, warning_tol )
00088   STANDARD_MEMBER_COMPOSITION_MEMBERS( value_type, error_tol )
00089 
00091 
00094 
00096   MatrixOpNonsingTester(
00097     ETestLevel       test_level       = TEST_LEVEL_2_BLAS
00098     ,EPrintTestLevel print_tests      = PRINT_NONE
00099     ,bool            dump_all         = false
00100     ,bool            throw_exception  = true
00101     ,size_type       num_random_tests = 1
00102     ,value_type      warning_tol      = 1e-14
00103     ,value_type      error_tol        = 1e-8
00104     );
00105 
00107 
00110  
00139   bool test_matrix(
00140     const MatrixOpNonsing   &M
00141     ,const char                     M_name[]
00142     ,std::ostream                   *out
00143     );
00144 
00146 
00147 }; // end class MatrixOpNonsingTester
00148 
00149 } // end namespace AbstractLinAlgPack
00150 
00151 #endif // MATRIX_WITH_OP_NONSINGULAR_TESTER_H

Generated on Thu Sep 18 12:33:51 2008 for AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects by doxygen 1.3.9.1