evaluate chebyshev polynomials takes too long
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Liu Langtian
el 2 de En. de 2018
Comentada: Liu Langtian
el 5 de En. de 2018
I want to get the values of chebyshev polynomials for a very long vector, but it takes too long to wait. e.g.
x = rand(1,10000000)
f = chebyshevT(30,x)
Is there any function can calculate them fast? thanks
0 comentarios
Respuesta aceptada
Neil Guertin
el 4 de En. de 2018
No matter how you do it, evaluating a polynomial at 10,000,000 different points is going to take a long time. I would suggest trying at smaller data sizes first to get an estimate of how long you think it might take in order to see if it is a reasonable approach. You may find it necessary to reduce the size of your data or use random data with a similar distribution.
If you have the Parallel Computing Toolbox you may be able to speed up the computation by performing it in parallel.
Más respuestas (0)
Ver también
Categorías
Más información sobre Polynomials en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!