示例#1
0
// State returns a pointer to the underlying rng state from gsl
func (s *RngState) State() StatePointer {
	return StatePointer(C.gsl_rng_state(s.state))
}
示例#2
0
文件: rng.go 项目: postfix/gsl-1
func State(r *GslRng) *RngState {
	return (*RngState)(C.gsl_rng_state((*C.gsl_rng)(unsafe.Pointer(r.Ptr()))))
}