@@ -7,6 +7,9 @@ ContinuumArrays.transform_ldiv_size(::Tuple{<:Any,InfiniteCardinal{0}}, A::Abstr
77padchop! (cfs, tol, ax... ) = pad (chop! (cfs, tol), ax... )
88padchop (cfs, tol, ax... ) = pad (chop (cfs, tol), ax... )
99
10+ padrows (a:: AbstractVector , ax) = pad (a, ax)
11+ padrows (a:: AbstractMatrix , ax) = pad (a, ax, :)
12+
1013# ax will impose block structure for us
1114padchop! (cfs:: BlockedVector , tol, ax... ) = padchop! (cfs. blocks, tol, ax... )
1215
5659function adaptivetransform_ldiv (A:: AbstractQuasiArray{U} , f:: AbstractQuasiMatrix{V} ) where {U,V}
5760 T = promote_type (eltype (U),eltype (V))
5861
59- bx = axes (f,2 )
6062 r = checkpoints (A)
6163 fr = f[r,:]
6264 maxabsfr = norm (fr,Inf )
@@ -69,12 +71,12 @@ function adaptivetransform_ldiv(A::AbstractQuasiArray{U}, f::AbstractQuasiMatrix
6971 cfs = An \ f
7072 maxabsc = maximum (abs, cfs)
7173 if maxabsc == 0 && maxabsfr == 0
72- return pad (similar (cfs,0 ,size (cfs,2 )), ax, bx )
74+ return pad (similar (cfs,0 ,size (cfs,2 )), ax, : )
7375 end
7476
7577 if maximum (abs,@views (cfs[end - 2 : end ,:])) < 10 tol* maxabsc
7678 n = size (cfs,1 )
77- c = padchop (cfs, tol, ax, bx )
79+ c = padchop (cfs, tol, ax, : )
7880 un = A * c # expansion
7981 # we allow for transformed coefficients being a different size
8082 # #TODO : how to do scaling for unnormalized bases like Jacobi?
0 commit comments