-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiffable.h
19 lines (17 loc) · 878 Bytes
/
diffable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* differentiable functions and their derivatives */
extern void ident(double *y, double *x, int n);
extern void dident(double *d, double *y, int n);
extern void sigm(double *y, double *x, int n);
extern void dsigm(double *d, double *y, int n);
extern void htan(double *y, double *x, int n);
extern void dhtan(double *d, double *y, int n);
extern void relu(double *y, double *x, int n);
extern void drelu(double *d, double *y, int n);
extern void smax(double *y, double *x, int n);
extern void dsmax(double **d, double *y, int n);
extern double quade(double *ov, double *tv, int n);
extern void dquade(double *dv, double *ov, double *tv, int n);
extern double binxe(double *ov, double *tv, int n);
extern void dbinxe(double *dv, double *ov, double *tv, int n);
extern double xentr(double *ov, double *tv, int n);
extern void dxentr(double *dv, double *ov, double *tv, int n);