chiark / gitweb /
895db62f0a9346dc492e9dc76ad2a4f32fab1ee1
[nlopt.git] / util / nlopt-util.h
1 #ifndef NLOPT_UTIL_H
2 #define NLOPT_UTIL_H
3
4 #ifdef __cplusplus
5 extern "C"
6 {
7 #endif /* __cplusplus */
8
9 /* seconds timer */
10 extern double nlopt_seconds(void);
11 extern unsigned long nlopt_time_seed(void);
12
13 /* pseudorandom number generation by Mersenne twister algorithm */
14 extern void nlopt_init_genrand(unsigned long s);
15 extern double nlopt_urand(double a, double b);
16
17 #ifdef __cplusplus
18 }  /* extern "C" */
19 #endif /* __cplusplus */
20
21 #endif