File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ OrthogonalPolynomial(w::JacobiWeight) = Jacobi(w.a, w.b)
122
122
orthogonalityweight (P:: Jacobi ) = JacobiWeight (P. a, P. b)
123
123
124
124
const WeightedJacobi{T} = WeightedBasis{T,<: JacobiWeight ,<: Jacobi }
125
+ WeightedJacobi (P:: Jacobi{T} ) where T = JacobiWeight (zero (T),zero (T)) .* P
125
126
126
127
"""
127
128
HalfWeighted{lr}(Jacobi(a,b))
@@ -320,16 +321,8 @@ function \(A::Jacobi, B::Jacobi)
320
321
end
321
322
end
322
323
323
- function \ (A:: Jacobi , w_B:: WeightedJacobi )
324
- a,b = A. a,A. b
325
- (JacobiWeight (zero (a),zero (b)) .* A) \ w_B
326
- end
327
-
328
- function \ (w_A:: WeightedJacobi , B:: Jacobi )
329
- a,b = B. a,B. b
330
- w_A \ (JacobiWeight (zero (a),zero (b)) .* B)
331
- end
332
-
324
+ \ (A:: Jacobi , w_B:: WeightedJacobi ) = WeightedJacobi (A) \ w_B
325
+ \ (w_A:: WeightedJacobi , B:: Jacobi ) = w_A \ WeightedJacobi (B)
333
326
\ (A:: AbstractJacobi , w_B:: WeightedJacobi ) = Jacobi (A) \ w_B
334
327
\ (w_A:: WeightedJacobi , B:: AbstractJacobi ) = w_A \ Jacobi (B)
335
328
You can’t perform that action at this time.
0 commit comments