![]() | We need to adjust the SWIG interface file:
/* typemaps.i allows input and output pointer arguments to be specified using the names INPUT, OUTPUT, or INOUT */ %include "typemaps.i" void hw3(double r1, double r2, double *OUTPUT); |
![]() | Now the usage from Python is
s = hw3(r1, r2) |
![]() | Unfortunately, SWIG does not document this in doc strings |