Bugzilla – Attachment 347 Details for
Bug 614
Matrix power segfaults
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
Matrix power segfaults for trivial 2x2 matrix.
matrix_power.cc (text/x-c++src), 606 bytes, created by
Dale Lukas Peterson
on 2013-06-13 20:21:03 UTC
(
hide
)
Description:
Matrix power segfaults for trivial 2x2 matrix.
Filename:
MIME Type:
Creator:
Dale Lukas Peterson
Created:
2013-06-13 20:21:03 UTC
Size:
606 bytes
patch
obsolete
>// Compiled with: >// >// $ g++ -Wall matrix_power.cc -O2 -ggdb3 -I/home/hazelnusse/usr/include/eigen3 -o matrix_power >// >#include <iostream> >#include <Eigen/Dense> >#include <unsupported/Eigen/MatrixFunctions> >int main() >{ > Eigen::MatrixXcd A(2,2); > A << 1, 1, 4, -2; > // Fine: > // std::cout << A.pow(1.0) << "\n"; > > // Segfaults: >// Eigen::MatrixPower<Eigen::MatrixXcd> Apow(A); >// Eigen::MatrixXcd C = Apow(3.1); > > // Segfaults: > std::cout << A.pow(3.1) << "\n\n"; > > // Segfaults: > //std::cout << A.pow(3.1).eval() << "\n\n"; > > // Segfaults: > //Eigen::MatrixXcd B(2,2); > //B = A.pow(3.1); >} >
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 614
: 347 |
348
|
352
|
355