Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Space.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ canonicaldomain(S::Space) = canonicaldomain(domain(S))
# This is used in place of == to support AnyDomain
spacescompatible(f::D,g::D) where D<:Space = error("Override spacescompatible for "*string(D))
spacescompatible(::UnsetSpace,::UnsetSpace) = true
spacescompatible(::Space, ::UnsetSpace) = true
spacescompatible(::UnsetSpace, ::Space) = true
spacescompatible(::NoSpace,::NoSpace) = true
spacescompatible(f,g) = false
==(A::Space,B::Space) = spacescompatible(A,B) && domain(A) == domain(B)
Expand Down
5 changes: 5 additions & 0 deletions test/SpacesTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,10 @@ using ApproxFunOrthogonalPolynomials
v = rand(4)
v2 = transform(NormalizedChebyshev(), v)
@test itransform(NormalizedChebyshev(), v2) ≈ v

@testset "ApproxFun.jl issue 616" begin
x, D = Fun(), Derivative(Chebyshev())
@test (D*Multiplication(x)*D)*x ≈ 1
end
end
end