latte-int / latte

LattE integrale, software for counting lattice points and integration over convex polytopes
https://www.math.ucdavis.edu/~latte/
GNU General Public License v2.0
39 stars 13 forks source link

[Improvement] C/C++ shared/static library interface #40

Open CharlesJQuarra opened 1 year ago

CharlesJQuarra commented 1 year ago

I was hoping to use this library to integrate polynomial functions over polytopes inside a c++ application, so I tried to browse inside the drivers that have a main(), It seems these drivers have a lot of logic inside them and is not straightforward how to call the top-level functionality from c/c++.

I considered using execve but it doesn't seem justified to resort to this given this is not a closed binary. I wonder if there are some guidelines for perhaps building a V-representation object in code and pass that to an integrate call