Skip to content

GridArrays associates an array of grid points with a domain

License

Notifications You must be signed in to change notification settings

JuliaApproximation/GridArrays.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

GridArrays associates an array of grid points with a domain

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages