Amesos Package Browser (Single Doxygen Collection) Development
Epetra_SLU.h
Go to the documentation of this file.
00001 // @HEADER
00002 // ***********************************************************************
00003 // 
00004 //                Amesos: Direct Sparse Solver 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00025 // 
00026 // ***********************************************************************
00027 // @HEADER
00028 
00029 #ifndef _EPETRA_SLU_H_
00030 #define _EPETRA_SLU_H_
00031 
00032 class Epetra_LinearProblem;
00033 class Epetra_CrsMatrix;
00034 class Epetra_MultiVector;
00035 class Epetra_CrsGraph;
00036 
00037 class SLUData;
00038 
00040 
00051 class Epetra_SLU
00052 {
00053 
00054  public:
00055 
00056 
00058 
00059 
00062   Epetra_SLU( Epetra_LinearProblem * Problem,
00063               int fill_fac = -1,
00064               int panel_size = -1,
00065               int relax = -1 );
00066 
00068 
00070   ~Epetra_SLU();
00072 
00073 
00075 
00076 
00079   int Solve( bool Verbose = false,
00080              bool Equil = true,
00081              bool Factor = true,
00082              int perm_type = 2,
00083              double pivot_thresh = -1,
00084              bool Refact = true,
00085              bool Trans = false );
00087 
00088  private:
00089 
00090   void Copy();
00091 
00092   Epetra_CrsMatrix * A_;
00093   Epetra_MultiVector * X_;
00094   Epetra_MultiVector * B_;
00095 
00096   double * R_;
00097   double * C_;
00098 
00099   Epetra_CrsGraph * AG_;
00100 
00101   SLUData * data_;
00102 
00103   int * Indices_;
00104   double * Values_;
00105 
00106   int * TransNumNZ_;
00107   int TotNumNZ_;
00108 
00109   int ** TransIndices_;
00110   double ** TransValues_;
00111 
00112   int * RowIndices_;
00113   double * RowValues_;
00114   int * ColPointers_;
00115 
00116   int * perm_r_;
00117   int * perm_c_;
00118 
00119   int count_;
00120 
00121   int * etree_;
00122 
00123   double * ferr_;
00124   double * berr_;
00125 };
00126 
00127 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines