/usr/include/adolc/adalloc.h is in libadolc-dev 2.4.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*----------------------------------------------------------------------------
ADOL-C -- Automatic Differentiation by Overloading in C++
File: adalloc.h
Revision: $Id: adalloc.h 364 2012-11-15 11:51:15Z kulshres $
Contents: Allocation of arrays of doubles in several dimensions
Copyright (c) Andrea Walther, Andreas Griewank, Andreas Kowarz,
Hristo Mitev, Sebastian Schlenkrich, Jean Utke, Olaf Vogel
This file is part of ADOL-C. This software is provided as open source.
Any use, reproduction, or distribution of the software constitutes
recipient's acceptance of the terms of the accompanying license file.
----------------------------------------------------------------------------*/
#if !defined (ADOLC_ADALLOC_H)
#define ADOLC_ADALLOC_H 1
#include <adolc/common.h>
/****************************************************************************/
/* Now the C THINGS */
BEGIN_C_DECLS
/*--------------------------------------------------------------------------*/
/* MEMORY MANAGEMENT UTILITIES */
ADOLC_DLL_EXPORT double *myalloc1(size_t);
ADOLC_DLL_EXPORT double **myalloc2(size_t, size_t);
ADOLC_DLL_EXPORT double ***myalloc3(size_t, size_t, size_t);
ADOLC_DLL_EXPORT void myfree1(double *);
ADOLC_DLL_EXPORT void myfree2(double **);
ADOLC_DLL_EXPORT void myfree3(double ***);
/*--------------------------------------------------------------------------*/
/* SPECIAL IDENTITY REPRESENTATION */
ADOLC_DLL_EXPORT double **myallocI2(int);
ADOLC_DLL_EXPORT void myfreeI2(int, double**);
ADOLC_DLL_EXPORT unsigned int * myalloc1_uint(int);
ADOLC_DLL_EXPORT unsigned long int * myalloc1_ulong(int);
ADOLC_DLL_EXPORT unsigned long int ** myalloc2_ulong(int, int);
/****************************************************************************/
/* INTEGER VARIANT FOR BIT PATTERN PROPAGATION */
ADOLC_DLL_EXPORT void myfree1_uint(unsigned int*);
ADOLC_DLL_EXPORT void myfree1_ulong(unsigned long int *);
ADOLC_DLL_EXPORT void myfree2_ulong(unsigned long int **);
END_C_DECLS
/****************************************************************************/
/* Now the C++ THINGS */
#if defined(__cplusplus)
/*--------------------------------------------------------------------------*/
/* MEMORY MANAGEMENT UTILITIES */
inline double * myalloc(int n) {
return myalloc1(n);
}
inline double ** myalloc(int m, int n) {
return myalloc2(m,n);
}
inline double *** myalloc(int m, int n, int p) {
return myalloc3(m,n,p);
}
inline void myfree(double *A) {
myfree1(A);
}
inline void myfree(double **A) {
myfree2(A);
}
inline void myfree(double ***A) {
myfree3(A);
}
#endif
/****************************************************************************/
#endif
|