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.