5512
|
1 /* |
|
2 |
|
3 Copyright (C) 2005 David Bateman |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (oct_sparse_h) |
|
25 #define oct_sparse_h 1 |
|
26 |
|
27 #ifdef HAVE_CONFIG_H |
|
28 #include <config.h> |
|
29 #endif |
|
30 |
6231
|
31 #if defined (HAVE_SUITESPARSE_UMFPACK_H) |
|
32 #include <suitesparse/umfpack.h> |
6186
|
33 #elif defined (HAVE_UFSPARSE_UMFPACK_H) |
5512
|
34 #include <ufsparse/umfpack.h> |
|
35 #elif defined (HAVE_UMFPACK_UMFPACK_H) |
|
36 #include <umfpack/umfpack.h> |
|
37 #elif defined (HAVE_UMFPACK_H) |
|
38 #include <umfpack.h> |
|
39 #endif |
|
40 |
6231
|
41 #if defined (HAVE_SUITESPARSE_COLAMD_H) |
|
42 #include <suitesparse/colamd.h> |
6186
|
43 #elif defined (HAVE_UFSPARSE_COLAMD_H) |
5512
|
44 #include <ufsparse/colamd.h> |
5610
|
45 #elif defined (HAVE_COLAMD_COLAMD_H) |
|
46 #include <colamd/colamd.h> |
5512
|
47 #elif defined (HAVE_COLAMD_H) |
|
48 #include <colamd.h> |
|
49 #endif |
|
50 |
6231
|
51 #if defined (HAVE_SUITESPARSE_CCOLAMD_H) |
|
52 #include <suitesparse/ccolamd.h> |
6186
|
53 #elif defined (HAVE_UFSPARSE_CCOLAMD_H) |
5512
|
54 #include <ufsparse/ccolamd.h> |
5610
|
55 #elif defined (HAVE_CCOLAMD_CCOLAMD_H) |
|
56 #include <ccolamd/ccolamd.h> |
5512
|
57 #elif defined (HAVE_CCOLAMD_H) |
|
58 #include <ccolamd.h> |
|
59 #endif |
|
60 |
6231
|
61 #if defined (HAVE_SUITESPARSE_METIS_H) |
|
62 #include <suitesparse/metis.h> |
6186
|
63 #elif defined (HAVE_UFSPARSE_METIS_H) |
5610
|
64 #include <ufsparse/metis.h> |
|
65 #elif defined (HAVE_METIS_METIS_H) |
5512
|
66 #include <metis/metis.h> |
|
67 #elif defined (HAVE_METIS_H) |
|
68 #include <metis.h> |
|
69 #endif |
|
70 |
6231
|
71 #if defined (HAVE_SUITESPARSE_CHOLMOD_H) |
|
72 #include <suitesparse/cholmod.h> |
6186
|
73 #elif defined (HAVE_UFSPARSE_CHOLMOD_H) |
5512
|
74 #include <ufsparse/cholmod.h> |
6236
|
75 #elif defined (HAVE_CHOLMOD_CHOLMOD_H) |
5610
|
76 #include <cholmod/cholmod.h> |
5512
|
77 #elif defined (HAVE_CHOLMOD_H) |
|
78 #include <cholmod.h> |
|
79 #endif |
|
80 |
6231
|
81 #if defined (HAVE_SUITESPARSE_CS_H) |
|
82 #include <suitesparse/cs.h> |
6186
|
83 #elif defined (HAVE_UFSPARSE_CS_H) |
5648
|
84 #include <ufsparse/cs.h> |
|
85 #elif defined (HAVE_CXSPARSE_CS_H) |
|
86 #include <cxsparse/cs.h> |
|
87 #elif defined (HAVE_CS_H) |
|
88 #include <cs.h> |
5610
|
89 #endif |
|
90 |
6231
|
91 #if (defined (HAVE_SUITESPARSE_CHOLMOD_H) \ |
6186
|
92 || defined (HAVE_UFSPARSE_CHOLMOD_H) \ |
6236
|
93 || defined (HAVE_CHOLMOD_CHOLMOD_H) \ |
5512
|
94 || defined (HAVE_CHOLMOD_H)) |
|
95 #ifdef IDX_TYPE_LONG |
|
96 #define CHOLMOD_NAME(name) cholmod_l_ ## name |
|
97 #else |
|
98 #define CHOLMOD_NAME(name) cholmod_ ## name |
|
99 #endif |
|
100 #endif |
|
101 |
|
102 #endif |