Exemple #1
0
func Clone(q *GslQrng) *GslQrng {
	_ref := C.gsl_qrng_clone((*C.gsl_qrng)(unsafe.Pointer(q.Ptr())))
	_result := &GslQrng{}
	gogsl.InitializeGslReference(_result, uintptr(unsafe.Pointer(_ref)))
	return _result
}
Exemple #2
0
// Clone returns a newly created generator which is an exact copy
// of the generator r.
func (s *QrngState) Clone() QrngState {
	return QrngState{C.gsl_qrng_clone(s.state), s.dim}
}