-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take advantage of broadcasting/implicit expansion in chebtech.clensha…
…w(). This has two benefits: - There is a measurable speedup when evaluating a high-degree array-valued chebtech with many columns at many points. - It is no longer necessary to maintain duplicate versions of the code for the scalar and vector cases. To expand on the second: with implicit expansion, the *only* difference between the scalar and vector codes is the indexing of the coefficient array as c(k) vs. c(k,:). I am unable to measure a speed difference between these for the case when c has only one column. This breaks compatibility with MATLAB versions older than R2016b.
- Loading branch information
1 parent
db207bc
commit 2601ab1
Showing
1 changed file
with
12 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters