gsl_rng_seed   xtlang


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

Implementation

;; this will seed rng in gsl_rng closure above
(bind-func gsl_rng_seed
  (lambda (seed)
    (let ((rng (gsl_rng.rng:gsl_rng*)))
      (gsl_rng_set rng seed))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


Back to Index

Similar Entries