Skip to content

Commit 3baae8b

Browse files
committed
test adjoint views work
1 parent b316b73 commit 3baae8b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ArrayLayouts = "0.6.2"
2828
BandedMatrices = "0.16.5"
2929
BlockArrays = "0.14.1, 0.15"
3030
BlockBandedMatrices = "0.10"
31-
ContinuumArrays = "0.6.2"
31+
ContinuumArrays = "0.6.4"
3232
DomainSets = "0.4, 0.5"
3333
FFTW = "1.1"
3434
FastGaussQuadrature = "0.4.3"

test/test_chebyshev.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ import ContinuumArrays: MappedWeightedBasisLayout, Map
349349
@test chebyshevu.(0:5, BigFloat(1)/10) == ChebyshevU{BigFloat}()[BigFloat(1)/10, 1:6]
350350
@test chebyshevu.(0:5, 2) == Base.unsafe_getindex(ChebyshevU(), 2, 1:6)
351351
end
352+
353+
@testset "Adjoint views" begin
354+
T = ChebyshevT(); U = ChebyshevU()
355+
D = Derivative(axes(T,1))
356+
V = view(T,:,[1,3,4])
357+
@test (U\(D*V))[1:5,:] == (U \ (V'D')')[1:5,:] == (U\(D*T))[1:5,[1,3,4]]
358+
end
352359
end
353360

354361
struct QuadraticMap{T} <: Map{T} end

0 commit comments

Comments
 (0)