hermann on Sat, 17 May 2025 21:46:48 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Incorporating Pari into a C program |
On 2025-05-17 09:48, Gordon Royle wrote:
The other answers helped with your request to call pari lib functions from C code.Hi Pari Users I do a lot of things with graph polynomials and their roots and for that I use GP a lot, but only in a naïve way – essentially just calling polrootsreal on billions of polynomials (using a Perl script to actually format the relevant GP commands). Now I need to do something different and although I have tried to read the manual, I am lost. What I need is a C function that will operate as a “plugin” to an existing C program (not written by me).
PARI allows for external C functions to be called from within GP as well (the other direction). In case you ever need that, here is a simple example of making cgal lib functions available in GP:
https://github.com/Hermann-SW/cgal4gp Regards, Hermann.