comparison liboctave/oct-sparse.h @ 5512:7c8767d0ffc0

[project @ 2005-10-27 02:20:17 by jwe]
author jwe
date Thu, 27 Oct 2005 02:20:17 +0000
parents
children a9bd6c31751f
comparison
equal deleted inserted replaced
5511:e67d027ff4e3 5512:7c8767d0ffc0
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
35 #if defined (HAVE_UFSPARSE_UMFPACK_h)
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>
45 #elif defined (HAVE_UMFPACK_COLAMD_H)
46 #include <umfpack/colamd.h>
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>
53 #elif defined (HAVE_UMFPACK_CCOLAMD_H)
54 #include <umfpack/ccolamd.h>
55 #elif defined (HAVE_CCOLAMD_H)
56 #include <ccolamd.h>
57 #endif
58
59 #if defined (HAVE_METIS_METIS_H)
60 #include <metis/metis.h>
61 #elif defined (HAVE_UFSPARSE_METIS_H)
62 #include <ufsparse/metis.h>
63 #elif defined (HAVE_UMFPACK_METIS_H)
64 #include <umfpack/metis.h>
65 #elif defined (HAVE_METIS_H)
66 #include <metis.h>
67 #endif
68
69 #if defined (HAVE_UFSPARSE_CHOLMOD_H)
70 #include <ufsparse/cholmod.h>
71 #elif defined (HAVE_UMFPACK_CHOLMOD_H)
72 #include <umfpack/cholmod.h>
73 #elif defined (HAVE_CHOLMOD_H)
74 #include <cholmod.h>
75 #endif
76
77 #if (defined (HAVE_UFSPARSE_CHOLMOD_H) \
78 || defined (HAVE_UMFPACK_CHOLMOD_H) \
79 || defined (HAVE_CHOLMOD_H))
80 #ifdef IDX_TYPE_LONG
81 #define CHOLMOD_NAME(name) cholmod_l_ ## name
82 #else
83 #define CHOLMOD_NAME(name) cholmod_ ## name
84 #endif
85 #endif
86
87 #ifdef __cplusplus
88 }
89 #endif
90
91 #endif