--- scikits/umfpack/umfpack.i.orig 2017-10-25 11:44:24 UTC +++ scikits/umfpack/umfpack.i @@ -6,6 +6,8 @@ /* See umfpack.py for more information. + Patched from + Created by: Robert Cimrman */ @@ -218,18 +220,21 @@ CONF_IN( UMFPACK_INFO ) }; %include -%include -%include -%include -%include -%include -%include -%include -%include -%include -%include +#if UMFPACK_MAIN_VERSION < 6 + %include + %include + %include + %include + %include + %include + %include + %include + %include + %include +#endif + /* The order is important below! */ @@ -240,21 +245,22 @@ OPAQUE_ARGOUT( void * ) void **Numeric } -%include -%include +#if UMFPACK_MAIN_VERSION < 6 + %include + %include +#endif - OPAQUE_ARGINOUT( void * ) %apply void ** opaque_arginout { void **Symbolic, void **Numeric } -%include -%include +#if UMFPACK_MAIN_VERSION < 6 + %include + %include +#endif - - /* * wnbell - attempt to get L,U,P,Q out */ @@ -280,8 +286,11 @@ OPAQUE_ARGINOUT( void * ) SuiteSparse_long *n_col, SuiteSparse_long *nz_udiag }; -%include +#if UMFPACK_MAIN_VERSION < 6 + %include +#endif + ARRAY_IN( double, double, DOUBLE ) %apply double *array { double Lx [ ], @@ -326,6 +335,8 @@ ARRAY_IN( SuiteSparse_long, SuiteSparse_long, INT64 ) }; %apply long *OUTPUT { SuiteSparse_long *do_recip}; -%include - +#if UMFPACK_MAIN_VERSION < 6 + %include #endif + +#endif // SWIGPYTHON