Ordering.hxx
1 // Copyright (C) 2011 Marc DuruflĂ©
2 //
3 // This file is part of the linear-algebra library Seldon,
4 // http://seldon.sourceforge.net/.
5 //
6 // Seldon is free software; you can redistribute it and/or modify it under the
7 // terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 2.1 of the License, or (at your option)
9 // any later version.
10 //
11 // Seldon is distributed in the hope that it will be useful, but WITHOUT ANY
12 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
14 // more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with Seldon. If not, see http://www.gnu.org/licenses/.
18 
19 
20 #ifndef SELDON_FILE_SOLVER_ORDERING_HXX
21 #define SELDON_FILE_SOLVER_ORDERING_HXX
22 
23 
24 namespace Seldon
25 {
26 
29  {
30  public :
31  // Supported orderings.
32  enum {IDENTITY, REVERSE_CUTHILL_MCKEE, PORD,
33  SCOTCH, METIS, AMD, COLAMD, QAMD, USER, AUTO,
34  AMF, PARMETIS, PTSCOTCH, MMD_AT_PLUS_A, MMD_ATA};
35  };
36 
37 
38  template<class T, class Prop, class Storage, class Allocator,
39  class Tint, class Alloc>
40  void FindReverseCuthillMcKeeOrdering(const Matrix<T, Prop,
41  Storage, Allocator>& A,
43 
44  template<class T, class Prop, class Storage, class Allocator,
45  class Tint, class Alloc>
47  Vector<Tint, VectFull, Alloc>& num, int type);
48 
49 } // namespace Seldon.
50 
51 
52 #endif
Seldon::Vector
Definition: SeldonHeader.hxx:207
Seldon::Matrix
Definition: SeldonHeader.hxx:226
Seldon::SparseMatrixOrdering
Basic class grouping different ordering strategies.
Definition: Ordering.hxx:28
Seldon::FindReverseCuthillMcKeeOrdering
void FindReverseCuthillMcKeeOrdering(const Matrix< T, Prop, Storage, Allocator > &A, Vector< Tint, VectFull, Alloc > &num)
Constructs reverse Cuthill-McKee ordering from a given matrix.
Definition: Ordering.cxx:35
Seldon::FindSparseOrdering
void FindSparseOrdering(Matrix< T, Prop, Storage, Allocator > &A, Vector< Tint, VectFull, Alloc > &num, int type)
Constructs an ordering for the factorization of a sparse matrix.
Definition: Ordering.cxx:137
Seldon
Seldon namespace.
Definition: Array.cxx:24