It is written in pure C, and requires only on standard library libm, and almost-standard library libgsl.
Definition in file pmv_ref.c.
#include <math.h>
#include <assert.h>
#include <gsl/gsl_complex_math.h>
#include <gsl/gsl_cblas.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include "pmv.h"
Go to the source code of this file.
Defines | |
| #define | restrict __restrict__ |
| #define | SIGMOID(x) (1.0 / (1.0 + exp(-(x)) )) |
Functions | |
| void | pmv_fabs (int size1, int size2, const double *x, int xtda, double *y, int ytda) |
| |
| void | pmv_axpby_cabs (int size1, int size2, const double a, const complex_t *x, int tdx, const double b, double *y, int tdy) |
| |
| void | pmv_clogabs (int size1, int size2, const complex_t *x, int tdx, double *y, int tdy) |
| |
| void | pmv_carg (int size1, int size2, const complex_t *x, int xtda, double *y, int ytda) |
| |
| void | pmv_pow (int size1, int size2, const double *x, int xtda, double *y, int ytda, double p) |
| |
| void | pmv_exp (int size1, int size2, const double *x, int xtda, double *y, int ytda) |
| |
| void | pmv_log (int size1, int size2, const double *x, int xtda, double *y, int ytda) |
| |
| void | pmv_sigmoid (int size1, int size2, const double *x, int xtda, double *y, int ytda) |
| |
| void | pmv_softmax (int size1, int size2, const double *x, int xtda, double *y, int ytda) |
| |
| void | pmv_uniform (int size1, int size2, unsigned long seed, double *y, int ytd) |
| void | pmv_normal (int size1, int size2, unsigned long seed, double *y, int ytd) |
|
||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
Definition at line 131 of file pmv_ref.c. References SIGMOID. |
|
||||||||||||||||||||||||||||
|
|
1.4.4