evaluate chebyshev polynomials takes too long

조회 수: 4 (최근 30일)
Liu Langtian
Liu Langtian 2018년 1월 2일
댓글: Liu Langtian 2018년 1월 5일
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

채택된 답변

Neil Guertin
Neil Guertin 2018년 1월 4일
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.
  댓글 수: 1
Liu Langtian
Liu Langtian 2018년 1월 5일
OK, thank you. Maybe I should learn doing the parallel computing

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!