ihedvall / mdflib

Implementation of the ASAM MDF data file.
https://ihedvall.github.io/mdflib/
MIT License
73 stars 30 forks source link

Investigate and optional add support for a numpy (C++) array library #96

Closed ihedvall closed 2 months ago

ihedvall commented 3 months ago

Investigate if a C++ multidimensional array library support. Eigen and Xtensor is typical example of that type of library. Xtensor is an inline only library so it is the primary goal.

ihedvall commented 2 months ago

This will not be implemented with the initial design. The problem is that the XTensor/Eigen library headers must be include in the mdf/include header. This mess up most builds as they also have to include external libraries.

Instead I have added some support functions that returns a simple (one dimensional) vector. The XTensor can use this linear vector into an array in the constructor (XTensor::Read Adapting 1-D containers help).