Esempio n. 1
0
// Clone returns a newly created generator which is an exact copy
// of the generator r.
func (s *RngState) Clone() RngState {
	return RngState{C.gsl_rng_clone(s.state)}
}
Esempio n. 2
0
File: rng.go Progetto: postfix/gsl-1
func Clone(r *GslRng) *GslRng {
	_ref := C.gsl_rng_clone((*C.gsl_rng)(unsafe.Pointer(r.Ptr())))
	_result := &GslRng{}
	gogsl.InitializeGslReference(_result, uintptr(unsafe.Pointer(_ref)))
	return _result
}