xeus-cling icon indicating copy to clipboard operation
xeus-cling copied to clipboard

`Eigen::Matrix3f A;` gives no matching constructor for initialization of 'Eigen::Matrix3f'

Open RajS999 opened this issue 1 year ago • 0 comments

I installed eigen, jupyterlab and xeus-cling as follows:

conda install -c conda-forge eigen
conda install -c conda-forge jupyterlab 
conda install -c conda-forge xeus-cling 

Then I started jupyter lab as follows:

~/workspaces/conda_py310_jupyter$ jupyter lab . 

Then I tried following in new C++ notebook:

#include <eigen3/Eigen/Core>
Eigen::Matrix3f A;

But it gives me following error

input_line_27:2:18: error: no matching constructor for initialization of 'Eigen::Matrix3f' (aka 'Matrix<float, 3, 3>')
 Eigen::Matrix3f A;
                 ^
Interpreter Error:

Here is the screenshot: image

Here is the yaml file of my conda environment (renamed to have txt extension since github does not allow to upload yaml): conda_env_py310.txt

RajS999 avatar Oct 23 '23 14:10 RajS999