I wrote a generate function to compute Chebyshev weights using Chebyshev 
regression. I'm sure that there are many ways the code could be improved, 
but at the top of my list is eliminating what appears to be a type 
instability whose source I'm having trouble locating using @code_warntype. 
 Any suggestions on how to eliminate the type instability would be 
appreciated.

The code can be found at the following gist: 
https://gist.github.com/RJDennis/a0ea1e4e49da97edaa464ba2a8d701ab

Thanks,

Richard  

Reply via email to