Giter VIP home page Giter VIP logo

rust-nearly-eq's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

regexident

rust-nearly-eq's Issues

Report a vulnerability in chalharu/rust-nearly-eq

Hello, we have found a vulnerability in this repository, which may present serious security risks. However, we have been unable to locate a contact email to report the details of this vulnerability. We would like to know if you can provide an email address to confidentially discuss this matter and avoid public disclosure.

Consider using standard EPSILON

In your current implementation you use 1e-6 as epsilon for f32 trait impl and 1e-11 as epsilon for f64. Are there some specific rationals why you use those "magic numbers" instead of the standard defined f32::EPSILON and f64::EPSILON?
If not, you might consider using them as their usage rationals are less confusing for the library users. :)

Consider using ndarray::ArrayBase::all_close

I wonder if it is possible to simply use the all_close method from ArrayBase provided by the ndarray crate itself to simplify the implementation of the trait of this library. It also offers an eps value for approximate equality.

Have you considered using it?

Add debug_assert_nearly_eq

The rust standard library defines a debug_assert macro corresponding to the assert macro that is activated only in debug mode but disabled in release builds to not negatively impact release build performance.

You may want this for your library as debug_assert_nearly_eq.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.