Macros | Functions | Variables
random.c File Reference
#include "libqhull.h"
#include "random.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for random.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 (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_last_random = 1
 

Macro Definition Documentation

◆ qh_rand_a

#define qh_rand_a   16807

Definition at line 145 of file random.c.

◆ qh_rand_m

#define qh_rand_m   2147483647

Definition at line 146 of file random.c.

◆ qh_rand_q

#define qh_rand_q   127773 /* m div a */

Definition at line 147 of file random.c.

◆ qh_rand_r

#define qh_rand_r   2836 /* m mod a */

Definition at line 148 of file random.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.c.

◆ qh_argv_to_command_size()

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

Definition at line 105 of file random.c.

◆ qh_rand()

int qh_rand ( void  )

Definition at line 150 of file random.c.

◆ qh_randomfactor()

realT qh_randomfactor ( realT  scale,
realT  offset 
)

Definition at line 185 of file random.c.

◆ qh_randommatrix()

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

Definition at line 204 of file random.c.

◆ qh_srand()

void qh_srand ( int  seed)

Definition at line 167 of file random.c.

◆ qh_strtod()

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

Definition at line 229 of file random.c.

◆ qh_strtol()

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

Definition at line 238 of file random.c.

Variable Documentation

◆ qh_last_random

int qh_last_random = 1

Definition at line 143 of file random.c.



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