|
| 1 | +module GridArraysDomainIntegralsExt |
| 2 | + |
| 3 | +using GridArrays, DomainIntegrals |
| 4 | + |
| 5 | +import DomainIntegrals: |
| 6 | + measure, |
| 7 | + laguerre_α, |
| 8 | + jacobi_α, |
| 9 | + jacobi_β |
| 10 | + |
| 11 | +measure(x::GridArrays.LaguerreNodes) = LaguerreWeight(x.α) |
| 12 | +measure(w::GridArrays.LaguerreWeights) = LaguerreWeight(w.α) |
| 13 | + |
| 14 | +laguerre_α(x::GridArrays.LaguerreNodes) = x.α |
| 15 | +laguerre_α(w::GridArrays.LaguerreWeights) = w.α |
| 16 | + |
| 17 | +measure(x::GridArrays.JacobiNodes) = JacobiWeight(x.α, x.β) |
| 18 | +measure(w::GridArrays.JacobiWeights) = JacobiWeight(w.α, w.β) |
| 19 | + |
| 20 | +jacobi_α(x::GridArrays.JacobiNodes) = x.α |
| 21 | +jacobi_α(w::GridArrays.JacobiWeights) = w.α |
| 22 | +jacobi_β(x::GridArrays.JacobiNodes) = x.β |
| 23 | +jacobi_β(w::GridArrays.JacobiWeights) = w.β |
| 24 | + |
| 25 | +measure(x::GridArrays.LegendreNodes{T}) where T = LegendreWeight{T}() |
| 26 | +measure(w::GridArrays.LegendreWeights{T}) where T = LegendreWeight{T}() |
| 27 | + |
| 28 | +jacobi_α(x::GridArrays.LegendreNodes{T}) where T = zero(T) |
| 29 | +jacobi_α(w::GridArrays.LegendreWeights{T}) where T = zero(T) |
| 30 | +jacobi_β(x::GridArrays.LegendreNodes{T}) where T = zero(T) |
| 31 | +jacobi_β(w::GridArrays.LegendreWeights{T}) where T = zero(T) |
| 32 | + |
| 33 | +measure(x::GridArrays.ChebyshevTNodes{T}) where T = ChebyshevTWeight{T}() |
| 34 | +measure(w::GridArrays.ChebyshevTWeights{T}) where T = ChebyshevTWeight{T}() |
| 35 | + |
| 36 | +jacobi_α(x::GridArrays.ChebyshevTNodes{T}) where T = -one(T)/2 |
| 37 | +jacobi_α(w::GridArrays.ChebyshevTWeights{T}) where T = -one(T)/2 |
| 38 | +jacobi_β(x::GridArrays.ChebyshevTNodes{T}) where T = -one(T)/2 |
| 39 | +jacobi_β(w::GridArrays.ChebyshevTWeights{T}) where T = -one(T)/2 |
| 40 | + |
| 41 | +measure(x::GridArrays.ChebyshevUNodes{T}) where T = ChebyshevUWeight{T}() |
| 42 | +measure(w::GridArrays.ChebyshevUWeights{T}) where T = ChebyshevUWeight{T}() |
| 43 | + |
| 44 | +jacobi_α(x::GridArrays.ChebyshevUNodes{T}) where T = -one(T)/2 |
| 45 | +jacobi_α(w::GridArrays.ChebyshevUWeights{T}) where T = -one(T)/2 |
| 46 | +jacobi_β(x::GridArrays.ChebyshevUNodes{T}) where T = -one(T)/2 |
| 47 | +jacobi_β(w::GridArrays.ChebyshevUWeights{T}) where T = -one(T)/2 |
| 48 | + |
| 49 | +measure(x::GridArrays.HermiteNodes{T}) where T = HermiteWeight{T}() |
| 50 | +measure(w::GridArrays.HermiteWeights{T}) where T = HermiteWeight{T}() |
| 51 | + |
| 52 | +end |
0 commit comments