Comments (3)
Have you done a profiling of the current gausslegendre
? Is it Bogaert's method? (A citation should be added to the code.)
For single threads, there is pretty much no reason this kind of code would be faster in C than in Julia. But there seems to be some sillyness in the current implementation, e.g., constants like -65 / 1024
which may be evaluated every loop.
from fastgaussquadrature.jl.
Note that issue is speculative since threading is still experimental in Julia. In my personal experience, Julia's experimental threading is still about a factor of 30% off from OpenMP paradigms and less flexible too.
As far as I can tell, the current implementation is a transliteration of Bogaert's method (though some terms in the series are pared down, and you're right about the constants that are fed into the macros).
For reference, here is the original C++ that appears to have been released in the public domain and here is a C version.
from fastgaussquadrature.jl.
are these threading comments still relevant? Julia's threading is pretty solid now. Anyone done any recent tests of timing?
from fastgaussquadrature.jl.
Related Issues (20)
- Migrate to travis-ci.com HOT 3
- TagBot trigger issue HOT 12
- `gausslaguerre(n, α)` produces error if α is Int HOT 2
- `gaussjacobi( 100000, .9, -.1 )` takes much more time than before
- Piessens's Chebyshev series approximations doesn't have enough accurate HOT 4
- Time to switch to GitHub Actions? HOT 18
- Quadrature rules for the weight function w(x) = 1/(1+x^2) HOT 8
- docstring format is not unified
- Question on unweighted Gauss-Hermite HOT 1
- gausshermite(21) returns error HOT 4
- gausslaguerre(39,44.8) doesn't converge, document these conditions for convergence
- Gauss-Chebyshev documentation has incorrect weights for third and fourth kinds
- Add mutating versions of functions that reuse external storage for sigma points and weights HOT 5
- missing promotion in `gaussjacobi` for integer `α, β` HOT 2
- Gauss–Kronrod points and weights? HOT 5
- export/document 3-term recurrence coefficients HOT 3
- The precision of `gausslegendre` can be improved HOT 1
- PLEASE DO NOT COMMIT DIRECTLY ON THE `master` BRANCH! HOT 3
- Road to v2.0.0 HOT 3
- Loss of accuracy in weights of large Gauss-Jacobi rules HOT 9
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 fastgaussquadrature.jl.