Skip to content

Commit 35e533c

Browse files
authored
Only overload weighted canonical indexing, and fix case of matrix weight (#241)
1 parent 6232e9a commit 35e533c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClassicalOrthogonalPolynomials"
22
uuid = "b30e2e7b-c4ee-47da-9d5f-2c5c27239acd"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.15.2"
4+
version = "0.15.3"
55

66

77
[deps]

src/normalized.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ abstract type AbstractWeighted{T} <: Basis{T} end
165165

166166

167167

168-
getindex(Q::AbstractWeighted, x::Union{Number,AbstractVector}, jr::Union{Number,AbstractVector}) = weight(Q)[x] .* unweighted(Q)[x,jr]
168+
_getindex(::Type{IND}, Q::AbstractWeighted, (x,j)::IND) where IND = weight(Q)[x] * unweighted(Q)[x,j]
169169

170170
MemoryLayout(::Type{<:AbstractWeighted}) = WeightedBasisLayout{OPLayout}()
171171
convert(::Type{WeightedBasis}, Q::AbstractWeighted) = weight(Q) .* unweighted(Q)

0 commit comments

Comments
 (0)