Comments (7)
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.
@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.
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.
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.
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.
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.
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)
- add newton method
- Print Horner factorisation with real coefficients HOT 2
- optimise factor evaluation
- optimise space requirement HOT 1
- remove assertions HOT 1
- JOSS submission: quality of writing HOT 18
- Show how to print out the human-readable representation of the Horner polynomial
- allow multi coefficient polynomials
- Error in running code HOT 1
- ModuleNotFound Error on fresh install HOT 7
- Enable evaluation of multiple inputs at once on a single polynomial HOT 3
- add pre-commit hook check in GHA build
- re-enable numerical stability tests
- Support for Complex Coeffecients/Evaluation HOT 10
- Improve Optimal Factorisation Heuristic HOT 1
- compute all optimal factorisations
- option to change coefficients after the factorisation HOT 1
- optimise naive representation
- improve efficiency of implementation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multivar_horner.