5451
|
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 |
5506
|
27 #ifdef HAVE_CONFIG_H |
|
28 #include <config.h> |
|
29 #endif |
|
30 |
5451
|
31 #ifdef __cplusplus |
|
32 extern "C" { |
|
33 #endif |
|
34 |
|
35 #ifdef HAVE_UMFPACK |
|
36 /* External UMFPACK functions in C */ |
|
37 #include <@UMFPACK_INCLUDE@> |
|
38 #endif |
|
39 |
|
40 #ifdef HAVE_COLAMD |
|
41 /* External COLAMD functions in C */ |
|
42 #include <@COLAMD_INCLUDE@> |
|
43 #endif |
|
44 |
|
45 #ifdef HAVE_CCOLAMD |
|
46 /* External COLAMD functions in C */ |
|
47 #include <@CCOLAMD_INCLUDE@> |
|
48 #endif |
|
49 |
5506
|
50 #ifdef HAVE_METIS |
|
51 /* External METIS functions in C */ |
|
52 #include <@METIS_INCLUDE@> |
|
53 #endif |
|
54 |
5451
|
55 #ifdef HAVE_CHOLMOD |
|
56 /* External CHOLMOD functions in C */ |
|
57 #include <@CHOLMOD_INCLUDE@> |
5506
|
58 |
|
59 #ifndef FALSE |
|
60 #define FALSE 0 |
|
61 #endif |
|
62 #ifndef TRUE |
|
63 #define TRUE 1 |
|
64 #endif |
|
65 |
|
66 #ifdef IDX_TYPE_LONG |
|
67 #define CHOLMOD_NAME(name) cholmod_l_ ## name |
|
68 #else |
|
69 #define CHOLMOD_NAME(name) cholmod_ ## name |
|
70 #endif |
5451
|
71 #endif |
|
72 |
|
73 #ifdef __cplusplus |
|
74 } |
|
75 #endif |
|
76 #endif |