Best way to create a wrapper for C library for Continuous version of Tensor Train


I would like to create a wrapper for the C library that implements a low-rank approximation of multi-dimensional functions in the same spirit as ApproxFun.

Here is the arxiv paper:

Is there a Julia package to easily construct the wrapper?

1 Like

Calling C functions is relatively “easy”. See e.g.

and some JuliaCon talks, for example Huda Nassar’s workshop from JuliaCon 2020.

If you need to generate a lot of functions that look similar, you can automate this with metaprogramming.

Of course, you can also just port the library to Julia…

1 Like

The link is also in the documentation above ( somewhere at the end)

Thank you @Tamas_Papp for mentioning this paper in ApproxFun for vector-valued function.
So far I have called the Python wrapper c3py of the C library in Julia and its working well. But I want to avoid wrapper of a wrapper and I need to add a few functions.

1 Like