@@ -34,7 +34,7 @@ import QuasiArrays: cardinality, checkindex, QuasiAdjoint, QuasiTranspose, Inclu
34
34
35
35
import InfiniteArrays: OneToInf, InfAxes, Infinity, AbstractInfUnitRange, InfiniteCardinal, InfRanges
36
36
import InfiniteLinearAlgebra: chop!, chop, pad, choplength, compatible_resize!, partialcholesky!
37
- import ContinuumArrays: Basis, Weight, basis_axes, @simplify , Identity, AbstractAffineQuasiVector, ProjectionFactorization,
37
+ import ContinuumArrays: Basis, Weight, basis_axes, @simplify , AbstractAffineQuasiVector, ProjectionFactorization,
38
38
grid, plotgrid, plotgrid_layout, plotvalues_layout, grid_layout, transform_ldiv, TransformFactorization, QInfAxes, broadcastbasis, ExpansionLayout, basismap,
39
39
AffineQuasiVector, AffineMap, AbstractWeightLayout, AbstractWeightedBasisLayout, WeightedBasisLayout, WeightedBasisLayouts, demap, AbstractBasisLayout, BasisLayout,
40
40
checkpoints, weight, unweighted, MappedBasisLayouts, sum_layout, invmap, plan_ldiv, layout_broadcasted, MappedBasisLayout, SubBasisLayout, broadcastbasis_layout,
@@ -90,6 +90,8 @@ represents an OP multiplied by its orthogonality weight.
90
90
"""
91
91
struct WeightedOPLayout{Lay<: AbstractOPLayout } <: AbstractWeightedBasisLayout end
92
92
93
+ grid_layout (:: WeightedOPLayout , P, n) = grid (unweighted (P), n)
94
+
93
95
isorthogonalityweighted (:: WeightedOPLayout , _) = true
94
96
function isorthogonalityweighted (:: AbstractWeightedBasisLayout , wS)
95
97
w,S = arguments (wS)
@@ -246,7 +248,7 @@ grammatrix_layout(::WeightedOPLayout{MappedOPLayout}, P) = grammatrix_layout(Map
246
248
247
249
OrthogonalPolynomial (w:: Weight ) = error (" Override for $(typeof (w)) " )
248
250
249
- @simplify * (B:: Identity , C:: OrthogonalPolynomial ) = ApplyQuasiMatrix (* , C, jacobimatrix (C))
251
+ @simplify * (B:: QuasiDiagonal{<:Any,<:Inclusion} , C:: OrthogonalPolynomial ) = ApplyQuasiMatrix (* , C, jacobimatrix (C))
250
252
251
253
function layout_broadcasted (:: Tuple{PolynomialLayout,AbstractOPLayout} , :: typeof (* ), x:: Inclusion , C)
252
254
x == axes (C,1 ) || throw (DimensionMismatch ())
0 commit comments