/usr/include/adolc/drivers/taylor.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 | /*----------------------------------------------------------------------------
ADOL-C -- Automatic Differentiation by Overloading in C++
File: drivers/taylor.h
Revision: $Id: taylor.h 354 2012-10-01 11:32:26Z kulshres $
Contents: Easy to use drivers for the evaluation of higher order derivative
tensors and inverse/impicit function differentiation
Copyright (c) Andrea Walther, Andreas Griewank, Andreas Kowarz, 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_DRIVERS_TAYLOR_H)
#define ADOLC_DRIVERS_TAYLOR_H 1
#include <adolc/common.h>
BEGIN_C_DECLS
/****************************************************************************/
/* TENSOR EVALUATIONS */
/*--------------------------------------------------------------------------*/
/* tensor_eval(tag,m,n,d,p,x[n],tensor[m][dim],S[n][p])
with dim = ((p+d) over d) */
ADOLC_DLL_EXPORT int tensor_eval
(short tag, int m, int n, int d, int p,
double *x, double **tensor, double **S);
/*--------------------------------------------------------------------------*/
/* inverse_tensor_eval(tag,n,d,p,x,tensor[n][dim],S[n][p])
with dim = ((p+d) over d) */
ADOLC_DLL_EXPORT int inverse_tensor_eval
(short tag, int n, int d, int p, double *x, double **tensor, double **S);
/*--------------------------------------------------------------------------*/
/* inverse_Taylor_prop(tag,n,d,Y[n][d+1],X[n][d+1]) */
ADOLC_DLL_EXPORT int inverse_Taylor_prop
(short tag, int n, int d, double** Y, double** X);
/****************************************************************************/
/* ACCESS TO TENSOR VALUES */
/*--------------------------------------------------------------------------*/
/* tensor_value(d,m,y[m],tensori[m][dim],multi[d])
with dim = ((p+d) over d) */
ADOLC_DLL_EXPORT void tensor_value
(int d, int m, double *y, double **tensor, int *multi);
/*--------------------------------------------------------------------------*/
/* void** tensorsetup(m,p,d,tensorig) */
ADOLC_DLL_EXPORT void** tensorsetup(int m, int p, int d, double** tensorig);
/*--------------------------------------------------------------------------*/
/* void freetensor(m,p,d,tensor) */
ADOLC_DLL_EXPORT void freetensor(int m, int p, int d, double** tensor);
/*--------------------------------------------------------------------------*/
/* int address(d, im[d]) */
ADOLC_DLL_EXPORT int address(int d, int* im);
/****************************************************************************/
/* UTILS */
/*--------------------------------------------------------------------------*/
/* int binomi(a,b) ---> binomial coefficient to compute tensor dimension */
ADOLC_DLL_EXPORT long binomi(int a, int b);
/*--------------------------------------------------------------------------*/
/* jac_solv(tag,n,x,b,mode) */
ADOLC_DLL_EXPORT int jac_solv
(unsigned short tag, int n, const double* x, double* b,
unsigned short mode);
END_C_DECLS
/****************************************************************************/
#endif
|