Giter Site home page Giter Site logo

Floating point comparisons about pysnark HOT 8 CLOSED

meilof avatar meilof commented on June 18, 2024
Floating point comparisons

from pysnark.

Comments (8)

meilof avatar meilof commented on June 18, 2024

from pysnark.

gxavier38 avatar gxavier38 commented on June 18, 2024

I do require this functionality. It would be great if you could implement it!

from pysnark.

meilof avatar meilof commented on June 18, 2024

from pysnark.

gxavier38 avatar gxavier38 commented on June 18, 2024

The comparisons work now, but removing the inheritance is causing some problems for me.
For example, floating points no longer have assert_eq.
Did you have an alternative planned?

from pysnark.

meilof avatar meilof commented on June 18, 2024

from pysnark.

gxavier38 avatar gxavier38 commented on June 18, 2024

It also looks like removing the inheritance also means losing a lot of floating point functionality:

PrivVal(0) == PrivValFxp(0)
AttributeError: 'LinCombFxp' object has no attribute 'check_zero'

if_then_else(PrivValFxp(1), PrivVal(1), PrivVal(0))
AttributeError: 'LinCombFxp' object has no attribute 'value'

PrivValFxp(1).check_positive()
AttributeError: 'LinCombFxp' object has no attribute 'check_positive'

from pysnark.

meilof avatar meilof commented on June 18, 2024

from pysnark.

gxavier38 avatar gxavier38 commented on June 18, 2024

Thank you!

from pysnark.

Related Issues (20)

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.