예제 #1
0
파일: ode.go 프로젝트: postfix/gsl-1
func DriverApply(d *GslOdeiv2Driver, t1 float64, y []float64) (int32, float64) {
	var _outptr_1 C.double
	_slice_header_3 := (*reflect.SliceHeader)(unsafe.Pointer(&y))
	_result := int32(C.gsl_odeiv2_driver_apply((*C.gsl_odeiv2_driver)(unsafe.Pointer(d.Ptr())), &_outptr_1, C.double(t1), (*C.double)(unsafe.Pointer(_slice_header_3.Data))))
	return _result, *(*float64)(unsafe.Pointer(&_outptr_1))
}
예제 #2
0
파일: ode.go 프로젝트: dtromb/gogsl
func DriverApply(d *GslOdeiv2Driver, t *float64, t1 float64, y []float64) int32 {
	_slice_header_3 := (*reflect.SliceHeader)(unsafe.Pointer(&y))
	return int32(C.gsl_odeiv2_driver_apply((*C.gsl_odeiv2_driver)(unsafe.Pointer(d.Ptr())), (*C.double)(t), C.double(t1), (*C.double)(unsafe.Pointer(_slice_header_3.Data))))
}