Пример #1
0
func EvolveApply(e *GslOdeiv2Evolve, con *GslOdeiv2Control, step *GslOdeiv2Step, sys *GslOdeiv2System, t1 float64, y []float64) (int32, float64, float64) {
	var _outptr_4 C.double
	var _outptr_6 C.double
	_slice_header_7 := (*reflect.SliceHeader)(unsafe.Pointer(&y))
	_result := int32(C.gsl_odeiv2_evolve_apply((*C.gsl_odeiv2_evolve)(unsafe.Pointer(e.Ptr())), (*C.gsl_odeiv2_control)(unsafe.Pointer(con.Ptr())), (*C.gsl_odeiv2_step)(unsafe.Pointer(step.Ptr())), (*C.gsl_odeiv2_system)(unsafe.Pointer(sys.CPtr())), &_outptr_4, C.double(t1), &_outptr_6, (*C.double)(unsafe.Pointer(_slice_header_7.Data))))
	return _result, *(*float64)(unsafe.Pointer(&_outptr_4)), *(*float64)(unsafe.Pointer(&_outptr_6))
}
Пример #2
0
func EvolveApply(e *GslOdeiv2Evolve, con *GslOdeiv2Control, step *GslOdeiv2Step, sys *GslOdeiv2System, t *float64, t1 float64, h *float64, y []float64) int32 {
	_slice_header_7 := (*reflect.SliceHeader)(unsafe.Pointer(&y))
	return int32(C.gsl_odeiv2_evolve_apply((*C.gsl_odeiv2_evolve)(unsafe.Pointer(e.Ptr())), (*C.gsl_odeiv2_control)(unsafe.Pointer(con.Ptr())), (*C.gsl_odeiv2_step)(unsafe.Pointer(step.Ptr())), (*C.gsl_odeiv2_system)(unsafe.Pointer(sys.CPtr())), (*C.double)(t), C.double(t1), (*C.double)(h), (*C.double)(unsafe.Pointer(_slice_header_7.Data))))
}