GridArrays.jl

GridArrays associates an array of grid points with a domain
Author JuliaApproximation
Popularity
5 Stars
Updated Last
8 Months Ago
Started In
April 2019

GridArrays.jl

Documentation Build Status Coverage
Documentation Documentation Build Status Coverage

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.

The package defines the roots of the classical orthogonal polynomials as arrays, including ChebyshevTNodes, ChebyshevUNodes, LegendreNodes and others.

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)