Main Page | Directories | File List | Globals

pmv.h File Reference


Detailed Description

This is the library header.

These functions are implemented in both pmv_ref.c and pmv_amd.c, so don't link both of them at once.

Definition in file pmv.h.

#include <gsl/gsl_complex.h>

Go to the source code of this file.

Typedefs

typedef gsl_complex complex_t

Functions

void pmv_fabs (int size1, int size2, const double *xptr, int xtd, double *yptr, int ytd)
 $ b[i,j] \leftarrow | a[i,j] | $
void pmv_axpby_cabs (int size1, int size2, const double a, const complex_t *xptr, int xtd, const double b, double *yptr, int tdy)
 $ y[i,j] \leftarrow a | x[i,j] | + b \cdot y[i,j] $
void pmv_clogabs (int size1, int size2, const complex_t *xptr, int xtd, double *yptr, int ytd)
 $ y[i,j] \leftarrow log \left( | x[i,j] | \right) $
void pmv_carg (int size1, int size2, const complex_t *xptr, int xtd, double *yptr, int ytd)
 $ y[i,j] \leftarrow \arg ( x[i,j] ) $
void pmv_pow (int size1, int size2, const double *xptr, int xtd, double *yptr, int ytd, double p)
 $ y[i,j] \leftarrow x[i,j]^{p} $
void pmv_exp (int size1, int size2, const double *xptr, int xtd, double *yptr, int ytd)
 $ y[i,j] \leftarrow e^{x[i,j]} $
void pmv_log (int size1, int size2, const double *xptr, int xtd, double *yptr, int ytd)
 $ y[i,j] \leftarrow \log(x[i,j]) $
void pmv_sigmoid (int size1, int size2, const double *xptr, int xtd, double *yptr, int ytd)
 $ y[i,j] \leftarrow \frac{1}{1 + e^{-x[i,j]}} $
void pmv_softmax (int size1, int size2, const double *xptr, int xtd, double *yptr, int ytd)
 $ y[i,j] \leftarrow \frac{e^{x[i,j]}}{\sum_k e^{x[i,k]}} $
void pmv_uniform (int size1, int size2, unsigned long int seed, double *yptr, int ytd)
 $ y[i,j] \sim U(0,1) $
void pmv_normal (int size1, int size2, unsigned long int seed, double *yptr, int ytd)
 $ y[i,j] \sim \cal{N}(0,1) $


Function Documentation

void pmv_axpby_cabs int  size1,
int  size2,
const double  a,
const complex_t xptr,
int  xtd,
const double  b,
double *  yptr,
int  tdy
 

$ y[i,j] \leftarrow a | x[i,j] | + b \cdot y[i,j] $

Definition at line 63 of file pmv_ref.c.

void pmv_carg int  size1,
int  size2,
const complex_t xptr,
int  xtd,
double *  yptr,
int  ytd
 

$ y[i,j] \leftarrow \arg ( x[i,j] ) $

Definition at line 87 of file pmv_ref.c.

void pmv_clogabs int  size1,
int  size2,
const complex_t xptr,
int  xtd,
double *  yptr,
int  ytd
 

$ y[i,j] \leftarrow log \left( | x[i,j] | \right) $

Definition at line 75 of file pmv_ref.c.

void pmv_exp int  size1,
int  size2,
const double *  xptr,
int  xtd,
double *  yptr,
int  ytd
 

$ y[i,j] \leftarrow e^{x[i,j]} $

Definition at line 109 of file pmv_ref.c.

void pmv_fabs int  size1,
int  size2,
const double *  xptr,
int  xtd,
double *  yptr,
int  ytd
 

$ b[i,j] \leftarrow | a[i,j] | $

Definition at line 52 of file pmv_ref.c.

void pmv_log int  size1,
int  size2,
const double *  xptr,
int  xtd,
double *  yptr,
int  ytd
 

$ y[i,j] \leftarrow \log(x[i,j]) $

Definition at line 120 of file pmv_ref.c.

void pmv_normal int  size1,
int  size2,
unsigned long int  seed,
double *  yptr,
int  ytd
 

$ y[i,j] \sim \cal{N}(0,1) $

Definition at line 563 of file pmv_amd.c.

void pmv_pow int  size1,
int  size2,
const double *  xptr,
int  xtd,
double *  yptr,
int  ytd,
double  p
 

$ y[i,j] \leftarrow x[i,j]^{p} $

Definition at line 98 of file pmv_ref.c.

void pmv_sigmoid int  size1,
int  size2,
const double *  xptr,
int  xtd,
double *  yptr,
int  ytd
 

$ y[i,j] \leftarrow \frac{1}{1 + e^{-x[i,j]}} $

Definition at line 131 of file pmv_ref.c.

References SIGMOID.

void pmv_softmax int  size1,
int  size2,
const double *  xptr,
int  xtd,
double *  yptr,
int  ytd
 

$ y[i,j] \leftarrow \frac{e^{x[i,j]}}{\sum_k e^{x[i,k]}} $

Definition at line 142 of file pmv_ref.c.

void pmv_uniform int  size1,
int  size2,
unsigned long int  seed,
double *  yptr,
int  ytd
 

$ y[i,j] \sim U(0,1) $

Definition at line 549 of file pmv_amd.c.


Generated on Wed Sep 27 13:21:20 2006 for libpmv by  doxygen 1.4.4