random_r.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*<html><pre> -<a href="qh-geom_r.htm"
  2. >-------------------------------</a><a name="TOP">-</a>
  3. random_r.h
  4. header file for random and utility routines
  5. see qh-geom_r.htm and random_r.c
  6. Copyright (c) 1993-2020 The Geometry Center.
  7. $Id: //main/2019/qhull/src/libqhull_r/random_r.h#3 $$Change: 2953 $
  8. $DateTime: 2020/05/21 22:05:32 $$Author: bbarber $
  9. */
  10. #ifndef qhDEFrandom
  11. #define qhDEFrandom 1
  12. #include "libqhull_r.h"
  13. /*============= prototypes in alphabetical order ======= */
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. int qh_argv_to_command(int argc, char *argv[], char* command, int max_size);
  18. int qh_argv_to_command_size(int argc, char *argv[]);
  19. int qh_rand(qhT *qh);
  20. void qh_srand(qhT *qh, int seed);
  21. realT qh_randomfactor(qhT *qh, realT scale, realT offset);
  22. void qh_randommatrix(qhT *qh, realT *buffer, int dim, realT **row);
  23. int qh_strtol(const char *s, char **endp);
  24. double qh_strtod(const char *s, char **endp);
  25. #ifdef __cplusplus
  26. } /* extern "C" */
  27. #endif
  28. #endif /* qhDEFrandom */