コード例 #1
0
ファイル: qrng.go プロジェクト: postfix/gsl-1
func Memcpy(dest *GslQrng, src *GslQrng) int32 {
	return int32(C.gsl_qrng_memcpy((*C.gsl_qrng)(unsafe.Pointer(dest.Ptr())), (*C.gsl_qrng)(unsafe.Pointer(src.Ptr()))))
}
コード例 #2
0
ファイル: quasirandom.go プロジェクト: haskelladdict/gsl
// Memcpy copies the quasi random number generator src into the
// pre-existing generator dest, making dest into an exact copy of src.
// The two generators must be of the same type.
// XXX: currently this ignores the return type of gsl_rng_memcpy since
// I don't know what it does (the manual is quiet on that)
func (s *QrngState) Memcpy(dest *QrngState) {
	C.gsl_qrng_memcpy(dest.state, s.state)
}