Eigen (C++ library): Difference between revisions

From David's Wiki
Created page with "Eigen is a template header-only C++ linear algebra library. It is one of the fastest and most popular. [http://eigen.tuxfamily.org/index.php?title=Main_Page Website]"
 
No edit summary
Line 2: Line 2:


[http://eigen.tuxfamily.org/index.php?title=Main_Page Website]
[http://eigen.tuxfamily.org/index.php?title=Main_Page Website]
==Usage==
===Compilation===
[http://eigen.tuxfamily.org/index.php?title=FAQ#Optimization Reference]<br>
For optimal performance, I recommend using the following flags when compiling.<br>
====GCC====
*<code>-mfma</code> Enabled fused multiply add
*<code>-mavx2</code> Enable avx2 vector instructions
*<code>-DEIGEN_NO_DEBUG</code> Set preprocessor define for eigen optimizations
*<code>-fopenmp</code> OpenMP parallel execution

Revision as of 19:35, 1 October 2019

Eigen is a template header-only C++ linear algebra library. It is one of the fastest and most popular.

Website

Usage

Compilation

Reference
For optimal performance, I recommend using the following flags when compiling.

GCC

  • -mfma Enabled fused multiply add
  • -mavx2 Enable avx2 vector instructions
  • -DEIGEN_NO_DEBUG Set preprocessor define for eigen optimizations
  • -fopenmp OpenMP parallel execution