1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
//------------------------------------------------------------------------------
// SuiteSparse/Example/Include/my_internal.h
//------------------------------------------------------------------------------
// Copyright (c) 2022-2025, Timothy A. Davis, All Rights Reserved.
// SPDX-License-Identifier: BSD-3-clause
//------------------------------------------------------------------------------
// Example include file for a user library.
#ifndef MY_INTERNAL_H
#define MY_INTERNAL_H
// SuiteSparse include files for C/C++:
#include "SuiteSparse_config.h"
#if !defined (SUITESPARSE__VERSION) || SUITESPARSE__VERSION < SUITESPARSE__VERCODE(7,10,1)
#error "This library requires SuiteSparse_config 7.10.1 or later"
#endif
#include "amd.h"
#if !defined (AMD__VERSION) || AMD__VERSION < SUITESPARSE__VERCODE(3,3,3)
#error "This library requires AMD 3.3.3 or later"
#endif
#include "btf.h"
#if !defined (BTF__VERSION) || BTF__VERSION < SUITESPARSE__VERCODE(2,3,2)
#error "This library requires BTF 2.3.2 or later"
#endif
#include "camd.h"
#if !defined (CAMD__VERSION) || CAMD__VERSION < SUITESPARSE__VERCODE(3,3,3)
#error "This library requires CAMD 3.3.3 or later"
#endif
#include "ccolamd.h"
#if !defined (CCOLAMD__VERSION) || CCOLAMD__VERSION < SUITESPARSE__VERCODE(3,3,4)
#error "This library requires CCOLAMD 3.3.4 or later"
#endif
#include "cholmod.h"
#if !defined (CHOLMOD__VERSION) || CHOLMOD__VERSION < SUITESPARSE__VERCODE(5,3,1)
#error "This library requires CHOLMOD 5.3.1 or later"
#endif
#include "colamd.h"
#if !defined (COLAMD__VERSION) || COLAMD__VERSION < SUITESPARSE__VERCODE(3,3,4)
#error "This library requires COLAMD 3.3.4 or later"
#endif
#include "cs.h"
#if !defined (CXSPARSE__VERSION) || CXSPARSE__VERSION < SUITESPARSE__VERCODE(4,4,1)
#error "This library requires CXSparse 4.4.1 or later"
#endif
#if ! defined (NO_GRAPHBLAS)
#include "GraphBLAS.h"
#if !defined ( GxB_SUITESPARSE_GRAPHBLAS ) || \
GxB_IMPLEMENTATION < GxB_VERSION (10,0,1)
#error "This library requires SuiteSparse:GraphBLAS 10.0.1 or later"
#endif
#endif
#if ! defined (NO_LAGRAPH)
#include "LAGraph.h"
#if SUITESPARSE__VERCODE(LAGRAPH_VERSION_MAJOR,LAGRAPH_VERSION_MINOR,LAGRAPH_VERSION_UPDATE) < SUITESPARSE__VERCODE(1,1,5)
#error "This library requires LAGraph 1.1.5 or later"
#endif
#endif
#include "klu.h"
#if !defined (KLU__VERSION) || KLU__VERSION < SUITESPARSE__VERCODE(2,3,5)
#error "This library requires KLU 2.3.5 or later"
#endif
#include "ldl.h"
#if !defined (LDL__VERSION) || LDL__VERSION < SUITESPARSE__VERCODE(3,3,2)
#error "This library requires LDL 3.3.2 or later"
#endif
#include "RBio.h"
#if !defined (RBIO__VERSION) || RBIO__VERSION < SUITESPARSE__VERCODE(4,3,4)
#error "This library requires RBio 4.3.4 or later"
#endif
#include "SPEX.h"
#if !defined (SPEX__VERSION) || SPEX__VERSION < SUITESPARSE__VERCODE(3,2,3)
#error "This library requires SPEX 3.2.3 or later"
#endif
#include "SuiteSparseQR_C.h"
#if !defined (SPQR__VERSION) || SPQR__VERSION < SUITESPARSE__VERCODE(4,3,4)
#error "This library requires SPQR 4.3.4 or later"
#endif
#include "umfpack.h"
#if !defined (UMFPACK__VERSION) || UMFPACK__VERSION < SUITESPARSE__VERCODE(6,3,5)
#error "This library requires UMFPACK 6.3.5 or later"
#endif
// SuiteSparse include files for C++:
#ifdef __cplusplus
#include "SuiteSparseQR.hpp"
#include "Mongoose.hpp"
#if !defined (Mongoose__VERSION) || Mongoose__VERSION < SUITESPARSE__VERCODE(3,3,4)
#error "This library requires Mongoose 3.3.4 or later"
#endif
#endif
// OpenMP include file:
#ifdef _OPENMP
#include <omp.h>
#endif
// GMP and MPFR
#include <gmp.h>
#include <mpfr.h>
#include "my.h"
#endif
|