Bugzilla – Attachment 649 Details for
Bug 1161
Crash while evaluating product of AutoDiffScalar matrices
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 demonstrating crash
file_1161.txt (text/plain), 646 bytes, created by
twan_koolen
on 2016-02-01 21:40:46 UTC
(
hide
)
Description:
Example demonstrating crash
Filename:
MIME Type:
Creator:
twan_koolen
Created:
2016-02-01 21:40:46 UTC
Size:
646 bytes
patch
obsolete
>#include <Eigen/Core> >#include <unsupported/Eigen/AutoDiff> > >using namespace Eigen; > >int main() { > static const int num_derivs = 73; // crashes for some values >// typedef AutoDiffScalar<VectorXd> ADScalar; // is fine > typedef AutoDiffScalar<Matrix<double, num_derivs, 1>> ADScalar; // causes crash > > Matrix<ADScalar, 3, 3> R; > R.setIdentity(); > for (int i = 0; i < R.size(); i++) { > R(i).derivatives().setRandom(num_derivs); > } > Matrix3Xd p = Matrix3Xd::Random(3, 64); // number of columns matters > Matrix<ADScalar, 3, Dynamic> p_transformed = R * (p.cast<ADScalar>()).eval(); // crash happens here > > 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 1161
: 649 |
650