Git Product home page Git Product logo

Comments (8)

zingale avatar zingale commented on June 22, 2024

we should also try to mark this function as pure and get it inlined

from microphysics.

zingale avatar zingale commented on June 22, 2024

the esum algorithm comes from here: https://people.eecs.berkeley.edu/~jrs/papers/robustr.pdf

from microphysics.

zingale avatar zingale commented on June 22, 2024

it is also not clear if enum makes sense with just 2 numbers. Is it really better than just a + b

from microphysics.

zingale avatar zingale commented on June 22, 2024

the esum branch removes all the esum() calls with 2 elements in aprox13. This gives identical results to the original version when using test_react (as compared with fcompare). This suggests that for 2 elements, it does not matter.

The code is about 3% faster w/o the esum() on 2 elements.

I'm going to try to do a custom sum for 3 elements next.

from microphysics.

zingale avatar zingale commented on June 22, 2024

PR #65 addresses some of this

from microphysics.

zingale avatar zingale commented on June 22, 2024

should this still be open?

from microphysics.

maxpkatz avatar maxpkatz commented on June 22, 2024

I think it should still be open. We still have improvements we can make.

from microphysics.

maxpkatz avatar maxpkatz commented on June 22, 2024

Closing, I've done all I plan to do on esum at the moment -- the optimizations we've already thought of have been done, and new ones can be in a new issue.

from microphysics.

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.