@@ -10,19 +10,22 @@ endpoints or singular points not included in `grid`. `n` specifies
1010the number of coefficients.
1111"""
1212
13- plotgrid (P, n... ) = _plotgrid (MemoryLayout (P), P, n... )
14- _plotgrid (lay, P, n= size (P,2 )) = grid (P, min (n,MAX_PLOT_POINTS))
13+ const _plotgrid = plotgrid_layout # TODO : remove
1514
16- _plotgrid (:: WeightedBasisLayouts , wP, n... ) = plotgrid (unweighted (wP), n... )
17- _plotgrid (:: MappedBasisLayout , P, n... ) = invmap (parentindices (P)[1 ])[plotgrid (demap (P), n... )]
18- _plotgrid (:: SubBasisLayout , P:: AbstractQuasiMatrix , n) = plotgrid (parent (P), maximum (parentindices (P)[2 ][n]))
19- _plotgrid (:: SubBasisLayout , P:: AbstractQuasiMatrix ) = plotgrid (parent (P), maximum (parentindices (P)[2 ]))
15+ plotgrid (P, n... ) = plotgrid_layout (MemoryLayout (P), P, n... )
2016
17+ plotgrid_layout (lay, P, n= size (P,2 )) = grid (P, min (n,MAX_PLOT_POINTS))
2118
22- _mul_plotgrid (_, args) = _plotgrid (UnknownLayout (), first (args))
19+ plotgrid_layout (:: WeightedBasisLayouts , wP, n... ) = plotgrid (unweighted (wP), n... )
20+ plotgrid_layout (:: MappedBasisLayout , P, n... ) = invmap (parentindices (P)[1 ])[plotgrid (demap (P), n... )]
21+ plotgrid_layout (:: SubBasisLayout , P:: AbstractQuasiMatrix , n) = plotgrid (parent (P), maximum (parentindices (P)[2 ][n]))
22+ plotgrid_layout (:: SubBasisLayout , P:: AbstractQuasiMatrix ) = plotgrid (parent (P), maximum (parentindices (P)[2 ]))
23+
24+
25+ _mul_plotgrid (_, args) = plotgrid_layout (UnknownLayout (), first (args))
2326_mul_plotgrid (:: Tuple{Any,PaddedLayout} , (P,c)) = plotgrid (P, maximum (colsupport (c)))
2427
25- function _plotgrid (lay:: ExpansionLayout , P)
28+ function plotgrid_layout (lay:: ExpansionLayout , P)
2629 args = arguments (lay,P)
2730 _mul_plotgrid (map (MemoryLayout,args), args)
2831end
0 commit comments