Comments (10)
I just checked with @aaustin141 in the chebfun implementation and the CXN versions appear to have 1e-12 error at length 100_000.
Will investigate.
from fasttransforms.jl.
Yes, the MATLAB implementation in Chebfun of CXN seems to far more accurate than presented here.
We were seeing a error growth like this in MATLAB when the ratio of gamma functions was not computed by the recurrence...
from fasttransforms.jl.
if somebody could find out why, that would be amazing
from fasttransforms.jl.
I have a test for the use of Stirling's series for a ratio of gamma functions compared with BigFloat. It appears to compute with high relative accuracy.
from fasttransforms.jl.
It appears that the chebfun code for cheb2leg is more involved than the other cases probably for reasons of numerical stability. From what I understand,
- the right diagonal scaling is built into the columns of the Hankel matrix
- the diagonal of the Toeplitz matrix is zeroed and the diagonal of the connection matrix, with its opposite sign, is computed and applied separately
@ajt60gaibb, it would be straightforward to translate the code, but is there a way to use the existing modular, functional approach in this repository?
from fasttransforms.jl.
I don't remember writing cheb2leg, did someone else do this?
Sent from my iPad
On 21 May 2016, at 7:54 AM, Richard Mikael Slevinsky [email protected] wrote:
It appears that the chebfun code for cheb2leg is more involved than the other cases probably for reasons of numerical stability. From what I understand,
the right diagonal scaling is built into the columns of the Hankel matrix
the diagonal of the Toeplitz matrix is zeroed and the diagonal of the connection matrix, with its opposite sign, is computed and applied separately
@ajt60gaibb, it would be straightforward to translate the code, but is there a way to use the existing modular, functional approach in this repository?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
from fasttransforms.jl.
I did... Kuan wanted a new tag for the package, and your paper says v0.0.4 will have the leg2cheb
, cheb2leg
, jac2jac
methods via the T.*H approach. So i tried adding them as described in the paper (S 5.1 in particular for cheb2leg
), and ended up with this issue.
from fasttransforms.jl.
I've introduced diagonal scaling into the partial Cholesky decomposition of the Hankel part in cf090e3 (thanks to @marcusdavidwebb for pointing this out!). Running the same gist now results in much better accuracy. To me, the Chebfun code has obfuscated this detail, but I think the methods are now equivalent. Are we satisfied?
from fasttransforms.jl.
OK. Great! Is there something we should change to make the diagonal scaling more clear in the Chebfun code?
from fasttransforms.jl.
Maybe a short description of the incorporation of two-sided diagonal scaling (by num) in the comments in lines 78-82 of https://github.com/chebfun/chebfun/blob/development/cheb2leg.m would suffice.
from fasttransforms.jl.
Related Issues (20)
- Potentially suboptimal performance in r2r transforms? HOT 1
- sph methods slow? HOT 4
- Chebyshev transforms do not work with the FFTW v1.6. HOT 2
- Add a slow path in ultra2ultra transforms?
- Reduction in accuracy in `cheb2leg ∘ leg2cheb` on v0.15 HOT 4
- Regression in `ultra2ultra` with identical orders HOT 1
- Write test for Normalization in `cheb2leg` and `leg2cheb` HOT 4
- `cheb2ultra` seems unreasonably slow HOT 2
- Julia rewrite of libFastTransforms HOT 2
- 1d transforms with multi-dimensional regions are slow HOT 3
- Use Toeplitz-dot-Hankel for very large dimensional transforms HOT 4
- Add multidimensional interface for lib transforms HOT 3
- Avoid reexporting dependencies
- Move out forwardrecurrence and clenshaw
- Segmentation fault for spherical harmonic transform HOT 5
- cheb2leg gives negatives for odd polynomials HOT 3
- Illegal instruction on macos in `ft_plan_chebyshev_to_jacobi` or `plan_cheb2leg`
- Can't use empty vectors in `th_cheb2leg` or `th_leg2cheb`
- Access to multithreading? HOT 7
- Allocating lmul! HOT 7
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 fasttransforms.jl.