Is there a way to overload or redirect from symbols in a compiled
library to a Cython function?

I have a library containing several functions each, of course, with
their own corresponding symbol in the library symbol table. The main
function in the library internally calls each of the other auxiliary
functions within the library. I'm looking for some way to reroute one
of those function symbols to point to a custom Cython function,
essentially overriding whatever was contained in the library, so that
when the main function calls the function, foo(), it's the custom
Cython version and not the one contained in the library.

The library in question contains compiled Fortran code from the
Clawpack (www.clawpack.org) software project. The code is meant to be
used directly to perform computations. That is, the main function
calls a collection of auxiliary Fortran subroutines. Initially, these
subroutines are empty. It's up to the user to write their own code to
define the behavior of the subroutine.

If this is possible, it would probably the easiest way to my knowledge
to create a Cython wrapper of Clawpack.

Thanks in advance for any help or ideas offered!

--
Chris Swierczewski
cswie...@gmail.com
http://cswiercz.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to