Giter VIP home page Giter VIP logo

Comments (7)

jannikmi avatar jannikmi commented on June 1, 2024

Thanks for bringing this up. Right now the package does not support this, but it would be a very nice feature to add.
Instead of parsing and converting the string representation in some hacky way, I would propose starting with the internally stored "recipe" (as i call it in this context).
This is an array representation of all the operations which need to be performed for evaluating the polynomial.
This is the function performing the evaluation of a recipe:


Perhaps you could rewrite this function into compiling a string of operations in C syntax and exporting that into a .c file.
I would really appreciate a PR for this as this would surely increase the evaluation performance.
Feel free to ask questions if you have any doubts.

from multivar_horner.

jannikmi avatar jannikmi commented on June 1, 2024

@Cfather have you started working on this? I might look into this soon, when I find time. A PR (even if incomplete) could help me get going. Let me know

from multivar_horner.

Cfather avatar Cfather commented on June 1, 2024

I'm sorry I finally switched to another route to evaluate my polynomials. So I haven't been working on that. But I'm very interested in this problem and believe it could be really useful in many areas. Please let me know if you need anything.

from multivar_horner.

jannikmi avatar jannikmi commented on June 1, 2024

No worries. From your GitHub name I guess you are more than familiar with C so I'll let you review the code (and .c files i generate) 😊

from multivar_horner.

jannikmi avatar jannikmi commented on June 1, 2024

here is my current progress on this: #24
evaluation already works with an automatically compiled C file (if gcc compiler is installed)
and with poly.get_c_instructions() you can fetch the content of the corresponding file

from multivar_horner.

Cfather avatar Cfather commented on June 1, 2024

Thank you very much for your update!!! I will try my best to take a look when I have the time. Sorry, it's near the end of a crazy semester right now.

from multivar_horner.

jannikmi avatar jannikmi commented on June 1, 2024

No worries. Just post here whenever you have time. The functionality is now fully implemented. Looking forward to any criticism or suggestions!

from multivar_horner.

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.