Giter Site home page Giter Site logo

Comments (6)

lenerd avatar lenerd commented on June 16, 2024

Hi,
you are looking for this file containing the description of a floating point addition circuit. If you copy/link the bin/circ directory into the working directory of the application, it should work.

Unfortunately, the path is hardcoded and there is currently no runtime option to change it.

from aby.

Cestlaviez avatar Cestlaviez commented on June 16, 2024

Hi,
Thanks. I found it and it work.
Btw, do you know the definition of the files under the bin/circ directory? I am trying to use fp_nostatus_cmp_64.aby to do cmp, but the result is 0 no matter what I input.

from aby.

lenerd avatar lenerd commented on June 16, 2024

I cannot help you with these circuits. Maybe you can find the information here or in the corresponding paper

from aby.

dd23 avatar dd23 commented on June 16, 2024

The fp_nostatus_cmp_64.aby should get two FP inputs, similar to the addition gate in the float example.
The result is a single bit that indicates if one value a is bigger than the other b. I have to test if 1 means a>b or a<b and how a==b is handled.
I haven't used the FP circuits in a while, so I'm not 100% sure on the current status.

from aby.

Cestlaviez avatar Cestlaviez commented on June 16, 2024

Thanks, I have tested other functions in FP circuits. They can work except function CMP.
Thus, I am wondering if someone have tested it successfully.

from aby.

dd23 avatar dd23 commented on June 16, 2024

I have added some example code to the float example in 8aa003c

The CMP works as intended.
CMP(a,b) returns
1 if a>b
0 if a==b
0 if a<b

Please check if this works for you and if so, please close this issue.

from aby.

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.