https://github.com/JuliaApproximation/MultivariateOrthogonalPolynomials.jl
Raw File
Tip revision: da60e28007855e9d0d90a5df8c088d634b4d6825 authored by github-actions[bot] on 13 October 2021, 01:08:42 UTC
CompatHelper: bump compat for "ClassicalOrthogonalPolynomials" to "0.5"
Tip revision: da60e28
test_modalinterlace.jl
using MultivariateOrthogonalPolynomials, ArrayLayouts, BandedMatrices, Test
import MultivariateOrthogonalPolynomials: ModalInterlace, ModalInterlaceLayout

@testset "ModalInterlace" begin
    ops = [brand(2,3,1,2), brand(1,2,1,1), brand(1,2,1,2)]
    A = ModalInterlace(ops, (3,5), (2,4))
    @test MemoryLayout(A) isa ModalInterlaceLayout
    @test A[[1,4],[1,4,11]] == ops[1]
    @test A[[2],[2,7]] == ops[2]
    @test A[[5],[5,12]] == A[[6],[6,13]] == ops[3]
end
back to top