Jump to content

Eigen (C++ library): Difference between revisions

Line 17: Line 17:


===Data to Eigen===
===Data to Eigen===
You can use <code>Eigen::Map</code> to create an eigen view for your existing data.<br>
You can use [https://eigen.tuxfamily.org/dox/classEigen_1_1Map.html <code>Eigen::Map</code>] to create an eigen view for your existing data.
<syntaxhighlight lang="cpp">
This works with aligned or unaligned data, row-order or column-order, and different strides.<br>
</syntaxhighlight>
See [https://eigen.tuxfamily.org/dox/group__TutorialMapClass.html Eigen: Interfacing with raw buffers] for an example.


==Math==
==Math==