Skip to content

Trefethen onedgrids should be refactored as R-transformations #311

Description

@marco-2023

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions