https://github.com/juliaapproximation/gridarrays.jl
GridArrays associates an array of grid points with a domain
https://github.com/juliaapproximation/gridarrays.jl
Last synced: 3 months ago
JSON representation
GridArrays associates an array of grid points with a domain
- Host: GitHub
- URL: https://github.com/juliaapproximation/gridarrays.jl
- Owner: JuliaApproximation
- License: mit
- Created: 2019-04-30T17:23:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-29T14:44:33.000Z (over 1 year ago)
- Last Synced: 2025-02-21T12:46:31.923Z (over 1 year ago)
- Language: Julia
- Homepage:
- Size: 236 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GridArrays.jl
| **Documentation** | **Build Status** | **Coverage** |
|-------------------|------------------|--------------|
| [](https://JuliaApproximation.github.io/GridArrays.jl/stable) [](https://JuliaApproximation.github.io/GridArrays.jl/dev) | [](https://github.com/JuliaApproximation/GridArrays.jl/actions/workflows/ci.yml) | [](https://codecov.io/gh/JuliaApproximation/GridArrays.jl) |
GridArrays defines a collection of basic grids that act as an array. These
arrays are also associated with a domain as defined by [DomainSets.jl](https://github.com/JuliaApproximation/DomainSets.jl).
The package defines the roots of the classical orthogonal polynomials as arrays,
including `ChebyshevTNodes`, `ChebyshevUNodes`, `LegendreNodes` and others.
```julia
julia> using GridArrays
julia> g1 = EquispacedGrid(5, 0, 1)
5-element EquispacedGrid{Float64}:
0.0
0.25
0.5
0.75
1.0
julia> covering(g1)
0.0..1.0
julia> g2 = MidpointEquispacedGrid(5, 0..1)
5-element MidpointEquispacedGrid{Float64}:
0.1
0.30000000000000004
0.5
0.7000000000000001
0.9
julia> g3 = ChebyshevNodes(4)
4-element ChebyshevTNodes{Float64}:
-0.9238795325112867
-0.38268343236508984
0.3826834323650897
0.9238795325112867
julia> covering(g3)
-1.0..1.0 (Chebyshev)
```