00001 /* ========================================================================== */ 00002 /* === Include/cholmod_config.h ============================================= */ 00003 /* ========================================================================== */ 00004 00005 /* ----------------------------------------------------------------------------- 00006 * CHOLMOD/Include/cholmod_config.h. 00007 * Copyright (C) 2005-2006, Univ. of Florida. Author: Timothy A. Davis 00008 * CHOLMOD/Include/cholmod_config.h is licensed under Version 2.1 of the GNU 00009 * Lesser General Public License. See lesser.txt for a text of the license. 00010 * CHOLMOD is also available under other licenses; contact authors for details. 00011 * http://www.cise.ufl.edu/research/sparse 00012 * -------------------------------------------------------------------------- */ 00013 00014 /* CHOLMOD configuration file, for inclusion in user programs. 00015 * 00016 * You do not have to edit any CHOLMOD files to compile and install CHOLMOD. 00017 * However, if you do not use all of CHOLMOD's modules, you need to compile 00018 * with the appropriate flag, or edit this file to add the appropriate #define. 00019 * 00020 * If you wish to use CHOLMOD under the GNU LGPL license only, then you must 00021 * compile CHOLMOD with -DNMATRIXOPS -DNSUPERNODAL and -DNMODIFY. This can 00022 * be done using just -DNGPL. 00023 * 00024 * Compiler flags for CHOLMOD: 00025 * 00026 * -DNCHECK do not include the Check module. License: GNU LGPL 00027 * -DNCHOLESKY do not include the Cholesky module. License: GNU LGPL 00028 * -DNPARTITION do not include the Partition module. License: GNU LGPL 00029 * 00030 * -DNGPL do not include any GNU GPL Modules in the CHOLMOD library. 00031 * -DNMATRIXOPS do not include the MatrixOps module. License: GNU GPL 00032 * -DNMODIFY do not include the Modify module. License: GNU GPL 00033 * -DNSUPERNODAL do not include the Supernodal module. License: GNU GPL 00034 * 00035 * -DNPRINT do not print anything 00036 * 00037 * -D'LONGBLAS=long' or -DLONGBLAS='long long' defines the integers used by 00038 * LAPACK and the BLAS. Use LONGBLAS=long on Solaris to use 00039 * the 64-bit Sun Performance BLAS in cholmod_l_* routines. 00040 * You may need to use -D'LONGBLAS=long long' on the SGI 00041 * (this is not tested). 00042 * 00043 * -DNSUNPERF for Solaris only. If defined, do not use the Sun 00044 * Performance Library. The default is to use SunPerf. 00045 * You must compile CHOLMOD with -xlic_lib=sunperf. 00046 * 00047 * The Core Module (License GNU LGPL) is always included in the CHOLMOD library. 00048 */ 00049 00050 #ifndef CHOLMOD_CONFIG_H 00051 #define CHOLMOD_CONFIG_H 00052 00053 /* Use the compiler flag, or uncomment the definition(s), if you want to use 00054 * one or more non-default installation options: */ 00055 00056 /* 00057 #define NCHECK 00058 #define NCHOLESKY 00059 #define NPARTITION 00060 00061 #define NGPL 00062 #define NMATRIXOPS 00063 #define NMODIFY 00064 #define NSUPERNODAL 00065 00066 #define NPRINT 00067 00068 #define LONGBLAS long 00069 #define LONGBLAS long long 00070 #define NSUNPERF 00071 */ 00072 00073 /* -------------------------------------------------------------------------- */ 00074 /* if NGPL is defined, disable all GNU GPL Modules */ 00075 /* -------------------------------------------------------------------------- */ 00076 00077 #ifdef NGPL 00078 #define NMATRIXOPS 00079 #define NMODIFY 00080 #define NSUPERNODAL 00081 #endif 00082 00083 #endif