Problems using the eigens tensor class

I would like to use the eigens tensor class from an unsupported module . This site suggests including something like #include <Eigen/CXX11/Tensor>

in order to use it. I installed eigen via Homebrew (version 3.2.4) on my Mac on OS X Yosemite. Although I am working correctly, I cannot find the required module in the unsupported folder:

#include <eigen3/unsupported/Eigen/???>

      

What could I forget or do wrong? Or do I have a legacy version that doesn't have a Tensor class yet?

+1


source to share


2 answers


The unsupported Tensor module is only in the unstable version (Current stable: 3.2.5).



+3


source


It looks like you can use the KroneckerProduct module , which:



#include <Eigen/KroneckerProduct>

Eigen::MatrixXd X = Eigen::kroneckerProduct(A, B); 
// A and B are Eigen matrices.

      

-1


source







All Articles