Defines | Functions | Variables
random.c File Reference
#include "libqhull.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for random.c:

Go to the source code of this file.

Defines

#define qh_rand_a   16807
#define qh_rand_m   2147483647
#define qh_rand_q   127773 /* m div a */
#define qh_rand_r   2836 /* m mod a */

Functions

int qh_argv_to_command (int argc, char *argv[], char *command, int max_size)
int qh_argv_to_command_size (int argc, char *argv[])
int qh_rand (void)
realT qh_randomfactor (realT scale, realT offset)
void qh_randommatrix (realT *buffer, int dim, realT **rows)
void qh_srand (int seed)
double qh_strtod (const char *s, char **endp)
int qh_strtol (const char *s, char **endp)

Variables

int qh_rand_seed = 1

Define Documentation

#define qh_rand_a   16807

Definition at line 143 of file random.c.

#define qh_rand_m   2147483647

Definition at line 144 of file random.c.

#define qh_rand_q   127773 /* m div a */

Definition at line 145 of file random.c.

#define qh_rand_r   2836 /* m mod a */

Definition at line 146 of file random.c.


Function Documentation

int qh_argv_to_command ( int  argc,
char *  argv[],
char *  command,
int  max_size 
)

Definition at line 40 of file random.c.

int qh_argv_to_command_size ( int  argc,
char *  argv[] 
)

Definition at line 103 of file random.c.

int qh_rand ( void  )

Definition at line 148 of file random.c.

realT qh_randomfactor ( realT  scale,
realT  offset 
)

Definition at line 183 of file random.c.

void qh_randommatrix ( realT buffer,
int  dim,
realT **  rows 
)

Definition at line 202 of file random.c.

void qh_srand ( int  seed)

Definition at line 165 of file random.c.

double qh_strtod ( const char *  s,
char **  endp 
)

Definition at line 227 of file random.c.

int qh_strtol ( const char *  s,
char **  endp 
)

Definition at line 236 of file random.c.


Variable Documentation

int qh_rand_seed = 1

Definition at line 141 of file random.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libqhull
Author(s): Robert Krug
autogenerated on Tue Jun 18 2013 12:38:50