gsl_rng   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm

Implementation

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; make a stupidly simple default rng
;; gsl_rng state maintained by closure
(bind-func gsl_rng
  (let ((rngs (gsl_rng_types_setup))
  (rng (gsl_rng_alloc (pref rngs 0))))
    (lambda ()
      (gsl_rng_uniform rng))))


Back to Index

Similar Entries

  • GSL_IMAG    xtlang
  • GSL_REAL    xtlang
  • GSL_SET_COMPLEX    xtlang
  • GSL_SET_IMAG    xtlang
  • GSL_SET_REAL    xtlang
  • gsl_rng_seed    xtlang
  • rng    scheme