Beispiel #1
0
// Free releases all the memory associated with the generator
// within the C part of gsl
func (s *RngState) Free() {
	C.gsl_rng_free(s.state)
	s.state = nil // to make sure we don't use after freeing
}
Beispiel #2
0
func freeRandomGenerator(r *C.gsl_rng) {
	C.gsl_rng_free(r)
}
Beispiel #3
0
func (x *GslRng) Dispose() {
	C.gsl_rng_free((*C.gsl_rng)(unsafe.Pointer(x.Ptr())))
}
Beispiel #4
0
// Free cleans up the RNG
func (r *RNG) Free() {
	C.gsl_rng_free(r.rng)
}