Bugzilla – Attachment 949 Details for
Bug 1741
Map<>.noalias()=A*B gives wrong result
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
Minimal code example to reproduce the issue
map_noalias.cpp (text/x-c++src), 688 bytes, created by
Patrick Peltzer
on 2019-08-16 15:45:12 UTC
(
hide
)
Description:
Minimal code example to reproduce the issue
Filename:
MIME Type:
Creator:
Patrick Peltzer
Created:
2019-08-16 15:45:12 UTC
Size:
688 bytes
patch
obsolete
>#include <Eigen/Core> >#include <iostream> > >using namespace Eigen; > >int main() { > const int size = 8; > > typedef Matrix<double, size, size> MatrixType; > MatrixType A,B; > A = B = MatrixType::Ones(); > > typedef Matrix<double, size*2, size*2> MatrixTypeLarge; > MatrixTypeLarge C; > C.setZero(); > Map<MatrixType, 0, Stride<size*4, 2> > C_Map(C.data(), size, size); > > C_Map = A * B; > std::cout << "C_Map" << std::endl << C_Map << std::endl; > //std::cout << "C" << std::endl << C << std::endl; > > C.setZero(); > C_Map.noalias() = A * B; > std::cout << std::endl << "C_Map.noalias()" << std::endl << C_Map << std::endl; > //std::cout << "C" << std::endl << C << 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 1741
: 949