eigen/demos/mix_eigen_and_c
2023-12-05 21:22:55 +00:00
..
binary_library.cpp Clang-format tests, examples, libraries, benchmarks, etc. 2023-12-05 21:22:55 +00:00
binary_library.h Clang-format tests, examples, libraries, benchmarks, etc. 2023-12-05 21:22:55 +00:00
example.c Clang-format tests, examples, libraries, benchmarks, etc. 2023-12-05 21:22:55 +00:00
README Make file formatting comply with POSIX and Unix standards 2020-03-23 18:09:02 +00:00

This is an example of how one can wrap some of Eigen into a C library.

To try this with GCC, do:

  g++ -c binary_library.cpp -O2 -msse2 -I ../..
  gcc example.c binary_library.o -o example -lstdc++
  ./example

TODO: add CMakeLists, add more explanations here