/usr/include/adolc/convolut.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 | /*----------------------------------------------------------------------------
ADOL-C -- Automatic Differentiation by Overloading in C++
File: convolut.h
Revision: $Id: convolut.h 354 2012-10-01 11:32:26Z kulshres $
Contents: Convolution routines (used by ho_rev.mc)
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_CONVOLUT_H)
#define ADOLC_CONVOLUT_H 1
#include <adolc/common.h>
BEGIN_C_DECLS
/****************************************************************************/
/* CONVOLUTION */
/*--------------------------------------------------------------------------*/
/* Evaluates convolution of a and b to c */
void conv( int dim, revreal *a, revreal *b, revreal *c );
void conv0( int dim, revreal *a, revreal *b, revreal *c );
/****************************************************************************/
/* INCREMENTAL CONVOLUTION */
/*--------------------------------------------------------------------------*/
/* Increments truncated convolution of a and b to c */
void inconv ( int dim, revreal *a, revreal *b, revreal* c );
/*--------------------------------------------------------------------------*/
/* Increments truncated convolution of a and b to c and sets a to zero */
void inconv0( int dim, revreal *a, revreal *b, revreal* c );
void inconv1( int dim, revreal *a, revreal *b, revreal* c );
/****************************************************************************/
/* DECREMENTAL CONVOLUTION */
/*--------------------------------------------------------------------------*/
/* Decrements truncated convolution of a and b to c */
void deconv ( int dim, revreal* a, revreal *b, revreal* c );
/*--------------------------------------------------------------------------*/
/* Decrements truncated convolution of a and b to c and sets a to zero */
void deconv0( int dim, revreal* a, revreal *b, revreal* c );
void deconv1( int dim, revreal* a, revreal *b, revreal* c );
void deconvZeroR( int dim, revreal *a, revreal *b, revreal *c );
/****************************************************************************/
/* OTHER USEFUL ROUTINES */
/*--------------------------------------------------------------------------*/
void divide(int dim, revreal* a, revreal *b, revreal* c);
/*--------------------------------------------------------------------------*/
void recipr(int dim, double a, revreal *b, revreal* c);
/****************************************************************************/
/* ZEROING */
/*--------------------------------------------------------------------------*/
/* Set a to zero */
void zeroset(int dim, double* a);
/*--------------------------------------------------------------------------*/
/* Copies a to tmp and initializes a to zero */
void copyAndZeroset( int dim, revreal *a, revreal* tmp);
/****************************************************************************/
END_C_DECLS
#endif
|