Skip to content

Can't use xeus-cpp with eigen #383

@tlwang147

Description

@tlwang147

Hi developers i have deployed xeus-cpp and jupyter on my server. When I use it on my laptop, such code

#include <iostream>
#include <eigen3/Eigen/Core>
#include <eigen3/Eigen/Eigenvalues>
Eigen::MatrixXd a(3, 3);
a << 1,2,3,
     2,4,7,
     3,7,1;
std::cout << a << std::endl;

runs as expected:

1 2 3
2 4 7
3 7 1

However if I run

Eigen::SelfAdjointEigenSolver<Eigen::MatrixXd> es(a);
std::cout << es.eigenvalues() << std::endl;
std::cout << es.eigenvectors() << std::endl;

it says the kernel appeared to have died. But the same code works in clang-repl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions