[go: up one dir, main page]

Matrix subtraction gives wrong result

Submitted by Andrew Palmer

Assigned to Nobody

Link to original bugzilla bug (#1435)
Version: 3.3 (current stable)
Operating system: Linux

Description

Created attachment 788
Example code

This gives the wrong results:

P = P - K * H * P;

While this gives the correct result:

P -= K * H * P;

Please see the attached code for an example. The correct result should be:

0.677419 0.322581 0
0.322581 0.877419 0
0 0 1.3

but the incorrect result is:

0.677419 0.322581 0
0.322581 1.09594 0
0 0 1.3

Please let me know if you need any additional information.

Attachment 788, "Example code":
eigen_bug.tar.gz

Edited by Eigen Bugzilla