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 |
|
31 #ifdef __cplusplus |
|
32 extern "C" { |
|
33 #endif |
|
34 |
5518
|
35 #if defined (HAVE_UFSPARSE_UMFPACK_H) |
5512
|
36 #include <ufsparse/umfpack.h> |
|
37 #elif defined (HAVE_UMFPACK_UMFPACK_H) |
|
38 #include <umfpack/umfpack.h> |
|
39 #elif defined (HAVE_UMFPACK_H) |
|
40 #include <umfpack.h> |
|
41 #endif |
|
42 |
|
43 #if defined (HAVE_UFSPARSE_COLAMD_H) |
|
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 |
|
51 #if defined (HAVE_UFSPARSE_CCOLAMD_H) |
|
52 #include <ufsparse/ccolamd.h> |
5610
|
53 #elif defined (HAVE_CCOLAMD_CCOLAMD_H) |
|
54 #include <ccolamd/ccolamd.h> |
5512
|
55 #elif defined (HAVE_CCOLAMD_H) |
|
56 #include <ccolamd.h> |
|
57 #endif |
|
58 |
5610
|
59 #if defined (HAVE_UFSPARSE_METIS_H) |
|
60 #include <ufsparse/metis.h> |
|
61 #elif defined (HAVE_METIS_METIS_H) |
5512
|
62 #include <metis/metis.h> |
|
63 #elif defined (HAVE_METIS_H) |
|
64 #include <metis.h> |
|
65 #endif |
|
66 |
|
67 #if defined (HAVE_UFSPARSE_CHOLMOD_H) |
|
68 #include <ufsparse/cholmod.h> |
|
69 #elif defined (HAVE_UMFPACK_CHOLMOD_H) |
5610
|
70 #include <cholmod/cholmod.h> |
5512
|
71 #elif defined (HAVE_CHOLMOD_H) |
|
72 #include <cholmod.h> |
|
73 #endif |
|
74 |
5648
|
75 #if defined (HAVE_UFSPARSE_CS_H) |
|
76 #include <ufsparse/cs.h> |
|
77 #elif defined (HAVE_CXSPARSE_CS_H) |
|
78 #include <cxsparse/cs.h> |
|
79 #elif defined (HAVE_CS_H) |
|
80 #include <cs.h> |
5610
|
81 #endif |
|
82 |
5512
|
83 #if (defined (HAVE_UFSPARSE_CHOLMOD_H) \ |
|
84 || defined (HAVE_UMFPACK_CHOLMOD_H) \ |
|
85 || defined (HAVE_CHOLMOD_H)) |
|
86 #ifdef IDX_TYPE_LONG |
|
87 #define CHOLMOD_NAME(name) cholmod_l_ ## name |
|
88 #else |
|
89 #define CHOLMOD_NAME(name) cholmod_ ## name |
|
90 #endif |
|
91 #endif |
|
92 |
|
93 #ifdef __cplusplus |
|
94 } |
|
95 #endif |
|
96 |
|
97 #endif |