Skip to content

Commit 3943928

Browse files
committed
tests pass
1 parent 8c1783a commit 3943928

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/classical/jacobi.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jacobi(a,b, d::AbstractInterval{T}) where T = Jacobi{float(promote_type(eltype(a
8383

8484
Jacobi(P::Legendre{T}) where T = Jacobi(zero(T), zero(T))
8585

86+
_basis(w::JacobiWeight) = Weighted(Jacobi(w.a, w.b))
87+
8688
"""
8789
jacobip(n, a, b, z)
8890

src/classical/legendre.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,10 @@ function __dot(::ExpansionLayout, ::ExpansionLayout, a, b)
178178
Q,d = basis(b),coefficients(b)
179179
c' * (P'Q) * d
180180
end
181-
__dot(_, _, a, b) = dot(expand(a), expand(b))
181+
__dot(_, _, a, b) = dot(expand(a), expand(b))
182+
__dot(::ZerosLayout, _, a, b) = __dot(ZerosLayout(), ZerosLayout(), a, b)
183+
__dot(_, ::ZerosLayout, a, b) = __dot(ZerosLayout(), ZerosLayout(), a, b)
184+
function __dot(::ZerosLayout, ::ZerosLayout, a, b)
185+
axes(a) == axes(b) || throw(DimensionMismatch("axes must match"))
186+
zero(promote_type(eltype(a), eltype(b)))
187+
end

0 commit comments

Comments
 (0)