oct-sparse.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 2005-2012 David Bateman
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 3 of the License, or (at your
00010 option) any later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, see
00019 <http://www.gnu.org/licenses/>.
00020 
00021 */
00022 
00023 #if !defined (oct_sparse_h)
00024 #define oct_sparse_h 1
00025 
00026 #if defined (HAVE_SUITESPARSE_AMD_H)
00027 #include <suitesparse/amd.h>
00028 #elif defined (HAVE_UFSPARSE_AMD_H)
00029 #include <ufsparse/amd.h>
00030 #elif defined (HAVE_AMD_AMD_H)
00031 #include <amd/amd.h>
00032 #elif defined (HAVE_AMD_H)
00033 #include <amd.h>
00034 #endif
00035 
00036 #if defined (HAVE_SUITESPARSE_UMFPACK_H)
00037 #include <suitesparse/umfpack.h>
00038 #elif defined (HAVE_UFSPARSE_UMFPACK_H)
00039 #include <ufsparse/umfpack.h>
00040 #elif defined (HAVE_UMFPACK_UMFPACK_H)
00041 #include <umfpack/umfpack.h>
00042 #elif defined (HAVE_UMFPACK_H)
00043 #include <umfpack.h>
00044 #endif
00045 
00046 #if defined (HAVE_SUITESPARSE_COLAMD_H)
00047 #include <suitesparse/colamd.h>
00048 #elif defined (HAVE_UFSPARSE_COLAMD_H)
00049 #include <ufsparse/colamd.h>
00050 #elif defined (HAVE_COLAMD_COLAMD_H)
00051 #include <colamd/colamd.h>
00052 #elif defined (HAVE_COLAMD_H)
00053 #include <colamd.h>
00054 #endif
00055 
00056 #if defined (HAVE_SUITESPARSE_CCOLAMD_H)
00057 #include <suitesparse/ccolamd.h>
00058 #elif defined (HAVE_UFSPARSE_CCOLAMD_H)
00059 #include <ufsparse/ccolamd.h>
00060 #elif defined (HAVE_CCOLAMD_CCOLAMD_H)
00061 #include <ccolamd/ccolamd.h>
00062 #elif defined (HAVE_CCOLAMD_H)
00063 #include <ccolamd.h>
00064 #endif
00065 
00066 #if defined (HAVE_SUITESPARSE_CHOLMOD_H)
00067 #include <suitesparse/cholmod.h>
00068 #elif defined (HAVE_UFSPARSE_CHOLMOD_H)
00069 #include <ufsparse/cholmod.h>
00070 #elif defined (HAVE_CHOLMOD_CHOLMOD_H)
00071 #include <cholmod/cholmod.h>
00072 #elif defined (HAVE_CHOLMOD_H)
00073 #include <cholmod.h>
00074 #endif
00075 
00076 #if defined (HAVE_SUITESPARSE_CS_H)
00077 #include <suitesparse/cs.h>
00078 #elif defined (HAVE_UFSPARSE_CS_H)
00079 #include <ufsparse/cs.h>
00080 #elif defined (HAVE_CXSPARSE_CS_H)
00081 #include <cxsparse/cs.h>
00082 #elif defined (HAVE_CS_H)
00083 #include <cs.h>
00084 #endif
00085 
00086 #if (defined (HAVE_SUITESPARSE_CHOLMOD_H) \
00087      || defined (HAVE_UFSPARSE_CHOLMOD_H) \
00088      || defined (HAVE_CHOLMOD_CHOLMOD_H) \
00089      || defined (HAVE_CHOLMOD_H))
00090 #ifdef IDX_TYPE_LONG
00091 #define CHOLMOD_NAME(name) cholmod_l_ ## name
00092 #else
00093 #define CHOLMOD_NAME(name) cholmod_ ## name
00094 #endif
00095 #endif
00096 
00097 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines