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