Beispiel #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)}
}
Beispiel #2
0
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
}