Exemple #1
0
// NewWork allocate new workspace
func NewWork(n int) *WorkSpace {
	ret := new(WorkSpace)
	ret.n = n
	ret.w = C.gsl_integration_workspace_alloc(C.size_t(n))
	return ret
}
Exemple #2
0
func IntegrationWorkspaceAlloc(n int) *GslIntegrationWorkspace {
	_ref := C.gsl_integration_workspace_alloc(C.size_t(n))
	_result := &GslIntegrationWorkspace{}
	gogsl.InitializeGslReference(_result, uintptr(unsafe.Pointer(_ref)))
	return _result
}