We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I create an eigen matrix and convert it to python object, and pass it to python function as follows
Eigen::Matrix<double, 2, 2> input; input << 1,2,3,4; boost::python::object PYinput(input); boost::python::object PYoutput = my_module.attr("get_numpy_array")(PYinput);
get_numpy_array is simply returning the same matrix.
def get_numpy_array(X): print X #this is working ok. return X
Now, if I try to convert the return python object to Eigen matrix again
Eigen::Matrix<double, 2, 2> output = boost::python::extract<Eigen::Matrix<double, 2, 2>>(PYoutput); std::cout << output <<std::endl;
I get
4.94066e-324 1 6.95322e-310 3
I am running this on mac osx El Capitan, with python 2.7.13.
@HannesSommer @schneith any clue about this?
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If I create an eigen matrix and convert it to python object, and pass it to python function as follows
get_numpy_array is simply returning the same matrix.
Now, if I try to convert the return python object to Eigen matrix again
I get
I am running this on mac osx El Capitan, with python 2.7.13.
@HannesSommer @schneith any clue about this?
The text was updated successfully, but these errors were encountered: