Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Epetra_SLU.h
Go to the documentation of this file.
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Amesos: Direct Sparse Solver 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 
29 #ifndef _EPETRA_SLU_H_
30 #define _EPETRA_SLU_H_
31 
32 #if defined(Amesos_SHOW_DEPRECATED_WARNINGS)
33 #ifdef __GNUC__
34 #warning "The Amesos package is deprecated"
35 #endif
36 #endif
37 
39 class Epetra_CrsMatrix;
40 class Epetra_MultiVector;
41 class Epetra_CrsGraph;
42 
43 class SLUData;
44 
46 
58 {
59 
60  public:
61 
62 
64 
69  int fill_fac = -1,
70  int panel_size = -1,
71  int relax = -1 );
72 
74 
76  ~Epetra_SLU();
78 
79 
81 
85  int Solve( bool Verbose = false,
86  bool Equil = true,
87  bool Factor = true,
88  int perm_type = 2,
89  double pivot_thresh = -1,
90  bool Refact = true,
91  bool Trans = false );
93 
94  private:
95 
96  void Copy();
97 
101 
102  double * R_;
103  double * C_;
104 
106 
108 
109  int * Indices_;
110  double * Values_;
111 
112  int * TransNumNZ_;
114 
116  double ** TransValues_;
117 
118  int * RowIndices_;
119  double * RowValues_;
121 
122  int * perm_r_;
123  int * perm_c_;
124 
125  int count_;
126 
127  int * etree_;
128 
129  double * ferr_;
130  double * berr_;
131 };
132 
133 #endif
int * etree_
Definition: Epetra_SLU.h:127
int ** TransIndices_
Definition: Epetra_SLU.h:115
Epetra_CrsMatrix * A_
Definition: Epetra_SLU.h:98
~Epetra_SLU()
Epetra_SLU Destructor.
Definition: Epetra_SLU.cpp:140
Epetra_SLU: An object-oriented wrapper for Xiaoye Li's serial sparse solver package: Superlu...
Definition: Epetra_SLU.h:57
double * ferr_
Definition: Epetra_SLU.h:129
double * C_
Definition: Epetra_SLU.h:103
double * R_
Definition: Epetra_SLU.h:102
int TotNumNZ_
Definition: Epetra_SLU.h:113
double * RowValues_
Definition: Epetra_SLU.h:119
int * TransNumNZ_
Definition: Epetra_SLU.h:112
int * Indices_
Definition: Epetra_SLU.h:109
Epetra_MultiVector * B_
Definition: Epetra_SLU.h:100
Epetra_MultiVector * X_
Definition: Epetra_SLU.h:99
int Solve(bool Verbose=false, bool Equil=true, bool Factor=true, int perm_type=2, double pivot_thresh=-1, bool Refact=true, bool Trans=false)
All computation is performed during the call to Solve()
Definition: Epetra_SLU.cpp:202
double ** TransValues_
Definition: Epetra_SLU.h:116
SLUData * data_
Definition: Epetra_SLU.h:107
double * berr_
Definition: Epetra_SLU.h:130
Epetra_CrsGraph * AG_
Definition: Epetra_SLU.h:105
int * RowIndices_
Definition: Epetra_SLU.h:118
int * perm_r_
Definition: Epetra_SLU.h:122
void Copy()
Definition: Epetra_SLU.cpp:175
Epetra_SLU(Epetra_LinearProblem *Problem, int fill_fac=-1, int panel_size=-1, int relax=-1)
Epetra_SLU Constructor.
Definition: Epetra_SLU.cpp:53
double * Values_
Definition: Epetra_SLU.h:110
int * perm_c_
Definition: Epetra_SLU.h:123
int * ColPointers_
Definition: Epetra_SLU.h:120