The current codebase has the classes TrefethenCC, TrefethenGC2, and TrefethenGeneral.
The first two correspond to Trefethen transformations of Clenshaw–Curtis and Gauss–Chebyshev grids, while the third allows wrapping an arbitrary OneDGrid instance. This architecture is fragile, as passing the arguments required by the underlying quadrature/grid becomes problematic and leads to unnecessary complexity.
Proposed Idea
Implement a single Trefethen transformation derived from BaseTransform that can be applied to any OneDGrid instance. The transfromation would map from [1,1] to [-1,1].
This would remove the need for separate TrefethenCC, TrefethenGC2, and TrefethenGeneral classes, while making the implementation easier to maintain.
The current codebase has the classes
TrefethenCC,TrefethenGC2, andTrefethenGeneral.The first two correspond to Trefethen transformations of Clenshaw–Curtis and Gauss–Chebyshev grids, while the third allows wrapping an arbitrary
OneDGridinstance. This architecture is fragile, as passing the arguments required by the underlying quadrature/grid becomes problematic and leads to unnecessary complexity.Proposed Idea
Implement a single Trefethen transformation derived from
BaseTransformthat can be applied to anyOneDGridinstance. The transfromation would map from [1,1] to [-1,1].This would remove the need for separate
TrefethenCC,TrefethenGC2, andTrefethenGeneralclasses, while making the implementation easier to maintain.