Bugzilla – Attachment 96 Details for
Bug 89
Crashes and wrong results due to GCC <=4.3 compiler bug with asserts inside of Eigen's code
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
[patch]
Patch for fuzzy compare
p (text/plain), 635 bytes, created by
Jitse Niesen
on 2011-02-12 17:49:12 UTC
(
hide
)
Description:
Patch for fuzzy compare
Filename:
MIME Type:
Creator:
Jitse Niesen
Created:
2011-02-12 17:49:12 UTC
Size:
635 bytes
patch
obsolete
>diff --git a/Eigen/src/Core/Fuzzy.h b/Eigen/src/Core/Fuzzy.h >--- a/Eigen/src/Core/Fuzzy.h >+++ b/Eigen/src/Core/Fuzzy.h >@@ -34,9 +34,7 @@ > { > static bool run(const Derived& x, const OtherDerived& y, typename Derived::RealScalar prec) > { >- const typename internal::nested<Derived,2>::type nested(x); >- const typename internal::nested<OtherDerived,2>::type otherNested(y); >- return (nested - otherNested).cwiseAbs2().sum() <= prec * prec * std::min(nested.cwiseAbs2().sum(), otherNested.cwiseAbs2().sum()); >+ return (x - y).cwiseAbs2().sum() <= prec * prec * std::min(x.cwiseAbs2().sum(), y.cwiseAbs2().sum()); > } > }; >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 89
:
17
|
18
|
19
| 96 |
98
|
100
|
101
|
102
|
103
|
104