Bugzilla – Attachment 744 Details for
Bug 1321
Segmentation fault on simple -A*b operation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
Example code
eigen_segfault_test_exec.cpp (text/x-c++src), 672 bytes, created by
Arturo Laurenzi
on 2016-10-06 11:33:57 UTC
(
hide
)
Description:
Example code
Filename:
MIME Type:
Creator:
Arturo Laurenzi
Created:
2016-10-06 11:33:57 UTC
Size:
672 bytes
patch
obsolete
>#include <Eigen/Dense> >#include <iostream> > >int main(int argc, char **argv){ > >Eigen::MatrixXd Aodd = Eigen::MatrixXd::Random(9,3); >Eigen::MatrixXd Aeven = Eigen::MatrixXd::Random(10,3); >Eigen::Vector3d b(5, 2, 3.2); >Eigen::VectorXd b_dyn(3); >b_dyn = b; > >std::cout << Aeven*b << "\n" << std::endl; >std::cout << -(Aeven*b) << "\n" << std::endl; >std::cout << -Aeven*b << std::endl; > >std::cout << Aodd*b_dyn << "\n" << std::endl; >std::cout << -(Aodd*b_dyn) << "\n" << std::endl; >std::cout << -Aodd*b_dyn << std::endl; > >std::cout << Aodd*b << "\n" << std::endl; // This line crashes >std::cout << -(Aodd*b) << "\n" << std::endl; >std::cout << -Aodd*b << std::endl; > >return 0; > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1321
: 744