Comments (3)
Apologies for the very late reply, but thank you for the report. Currently working on a fix :).
from float_eq-rs.
The visibility of derived fields in 1.0.1 should now match the original fields' visibility. Please let me know if there's anything else :)
from float_eq-rs.
This seems to be working fine now. Many thanks.
Going off on a tangent (let me know if there's a better place to raise this) ... I have a struct with a bunch of (lots, too many!) fields, and one or two of them are expected to be NaN
s. I would like to be able to express a test along the lines of
Each of these fields should match within
ulps <= 1
(or specific differentulps
es for each) except these two which should beNaN
s.
Is there any way of doing without writing a separate assertion for each member?
from float_eq-rs.
Related Issues (20)
- Trait impl fallbacks for non-floats HOT 1
- Debug bounds checks HOT 1
- Blanket trait impls for Result HOT 1
- FloatEq impls over slices HOT 1
- Add an option to control what is #[derive]'d on derived ulps types HOT 1
- Ulps types are poorly specified for composite types HOT 2
- Generalise trait impls across array types of any size HOT 1
- Additional relative checks HOT 1
- Design: implementing traits over enums (e.g. Result)
- Deriving extension traits over generic types
- Allow for custom #[derive] traits when deriving Ulps and DebugUlpsDiff types HOT 1
- Print float values in asserts in non-scientific format
- Use with Complex<T> should be clarified HOT 10
- Consider how ULPs should deal with special values HOT 5
- Derive support for custom types HOT 1
- Comparison of heterogeneous types HOT 2
- Add unit tests to FloatEqDebug implementations HOT 2
- Implement traits over standard Rust types HOT 1
- Derive FloatUlps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from float_eq-rs.