func (g Generator) GenerateNormalDouble(output uintptr, n int64, mean, stddev float64) { err := Status(C.curandGenerateNormalDouble( C.curandGenerator_t(unsafe.Pointer(uintptr(g))), (*C.double)(unsafe.Pointer(uintptr(output))), C.size_t(n), C.double(mean), C.double(stddev))) if err != SUCCESS { panic(err) } }
func (g Generator) SetSeed(seed int64) { err := Status(C.curandSetPseudoRandomGeneratorSeed(C.curandGenerator_t(unsafe.Pointer(uintptr(g))), _Ctype_ulonglong(seed))) if err != SUCCESS { panic(err) } }