Can i use Eigen with c?

I am not very good at programming templates, and currently I'm using gsl. I am wondering if Eigen can be used in C. Has anyone used Eigen in C before? Is there something I can check to find out if it will be easy?

+6
source share
2 answers

Since Eigen is a C ++ template library, it cannot be used directly with C.

Hypothetically, you can collapse C ++ templates in the C API and use this. However, this is associated with a heavy load and may seem a little pointless to me (you can use existing C libraries for linear algebra).

+5
source

AFAIK, Eigen is a template-only library. C does not support patterns. Thus, without writing many shell functions that expose the C-style interface, no.

+2
source

Source: https://habr.com/ru/post/915536/


All Articles