Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateTridi.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 //
30 // CreateTridi populates an empty EpetraCrsMatrix with a tridiagonal with
31 // -1 on the off-diagonals and 2 on the diagonal.
32 //
33 // CreateTridiPlus creates the same matrix as CreateTridi except that it adds
34 // -1 in the two off diagonal corners.
35 //
36 // This code was plaguerized from epetra/example/petra_power_method/cxx_main.cpp
37 // presumably written by Mike Heroux.
38 //
39 // Adapted by Ken Stanley - Aug 2003
40 //
41 #include "Epetra_CrsMatrix.h"
42 
44 
46 
47 #if defined(Amesos_SHOW_DEPRECATED_WARNINGS)
48 #ifdef __GNUC__
49 #warning "The Amesos package is deprecated"
50 #endif
51 #endif
int CreateTridi(Epetra_CrsMatrix &A)
Definition: CreateTridi.cpp:44
int CreateTridiPlus(Epetra_CrsMatrix &A)