Macros | Functions
random_r.c File Reference
#include "libqhull_r.h"
#include "random_r.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for random_r.c:

Go to the source code of this file.

Macros

#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 (qhT *qh)
 
realT qh_randomfactor (qhT *qh, realT scale, realT offset)
 
void qh_randommatrix (qhT *qh, realT *buffer, int dim, realT **rows)
 
void qh_srand (qhT *qh, int seed)
 
double qh_strtod (const char *s, char **endp)
 
int qh_strtol (const char *s, char **endp)
 

Macro Definition Documentation

◆ qh_rand_a

#define qh_rand_a   16807

Definition at line 143 of file random_r.c.

◆ qh_rand_m

#define qh_rand_m   2147483647

Definition at line 144 of file random_r.c.

◆ qh_rand_q

#define qh_rand_q   127773 /* m div a */

Definition at line 145 of file random_r.c.

◆ qh_rand_r

#define qh_rand_r   2836 /* m mod a */

Definition at line 146 of file random_r.c.

Function Documentation

◆ qh_argv_to_command()

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

Definition at line 42 of file random_r.c.

◆ qh_argv_to_command_size()

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

Definition at line 105 of file random_r.c.

◆ qh_rand()

int qh_rand ( qhT qh)

Definition at line 148 of file random_r.c.

◆ qh_randomfactor()

realT qh_randomfactor ( qhT qh,
realT  scale,
realT  offset 
)

Definition at line 184 of file random_r.c.

◆ qh_randommatrix()

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

Definition at line 206 of file random_r.c.

◆ qh_srand()

void qh_srand ( qhT qh,
int  seed 
)

Definition at line 165 of file random_r.c.

◆ qh_strtod()

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

Definition at line 231 of file random_r.c.

◆ qh_strtol()

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

Definition at line 240 of file random_r.c.



hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:16