Bugzilla – Attachment 498 Details for
Bug 890
More robust detection of identical source/destination in PermutationMatrix products
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
Small example program showing the problem
test.cpp (text/x-c++src), 805 bytes, created by
ettersi
on 2014-10-09 22:14:40 UTC
(
hide
)
Description:
Small example program showing the problem
Filename:
MIME Type:
Creator:
ettersi
Created:
2014-10-09 22:14:40 UTC
Size:
805 bytes
patch
obsolete
>#include <iostream> >#include <vector> >#include <Eigen/Core> >#include <Eigen/LU> > >typedef double scalar_type; >typedef Eigen::Matrix<scalar_type, Eigen::Dynamic, Eigen::Dynamic> matrix_type; >typedef Eigen::Map<matrix_type, Eigen::Aligned, Eigen::Stride<Eigen::Dynamic, Eigen::Dynamic>> map_type; > >int main() { > using namespace Eigen; > std::vector<scalar_type> vec = {666,666}; > std::vector<scalar_type> op = {1,0,0,1}; > std::vector<scalar_type> rhs = {42,42}; > > map_type(vec.data(),2,1,Stride<Dynamic,Dynamic>(1,1)) > = map_type(op.data(),2,2,Stride<Dynamic,Dynamic>(1,2)).partialPivLu() > .solve(map_type(rhs.data(),2,1,Stride<Dynamic,Dynamic>(1,1))); > std::cout << map_type(vec.data(),1,2,Stride<Dynamic,Dynamic>(1,1)) << 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 890
: 498