Menu

#258 Numerical lists in the C-Interface

Other
open
nobody
None
5
2023-05-16
2023-05-16
No

I am implementing a statistical relational learning algorithm in Prolog, which involves some numerical linear algebra.
In my current prototype, this is also implemented in Prolog, which is obviously suboptimal from a performance standpoint.
I have therefore written the matrix routines up in C and was wondering if there is a canonical way to pass lists of floating-point numbers to C using the higher-level interface?
The comments in cinterf.h seem to suggest that predicates of the xxx_term family could achieve this in a way similar to the Python-C interface, but I couldn't find any documentation for them in the manual.

Discussion


Log in to post a comment.