An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# GridArrays.jl

| **Documentation** | **Build Status** | **Coverage** |
|-------------------|------------------|--------------|
| [![Documentation](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaApproximation.github.io/GridArrays.jl/stable) [![Documentation](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaApproximation.github.io/GridArrays.jl/dev) | [![Build Status](https://github.com/JuliaApproximation/GridArrays.jl/workflows/CI/badge.svg)](https://github.com/JuliaApproximation/GridArrays.jl/actions/workflows/ci.yml) | [![Coverage](https://codecov.io/gh/JuliaApproximation/GridArrays.jl/branch/master/graph/badge.svg)](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)
```