Esempio n. 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
}
Esempio n. 2
0
func freeRandomGenerator(r *C.gsl_rng) {
	C.gsl_rng_free(r)
}
Esempio n. 3
0
File: rng.go Progetto: postfix/gsl-1
func (x *GslRng) Dispose() {
	C.gsl_rng_free((*C.gsl_rng)(unsafe.Pointer(x.Ptr())))
}
Esempio n. 4
0
// Free cleans up the RNG
func (r *RNG) Free() {
	C.gsl_rng_free(r.rng)
}