@@ -10,19 +10,22 @@ endpoints or singular points not included in `grid`. `n` specifies
10
10
the number of coefficients.
11
11
"""
12
12
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
15
14
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... )
20
16
17
+ plotgrid_layout (lay, P, n= size (P,2 )) = grid (P, min (n,MAX_PLOT_POINTS))
21
18
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))
23
26
_mul_plotgrid (:: Tuple{Any,PaddedLayout} , (P,c)) = plotgrid (P, maximum (colsupport (c)))
24
27
25
- function _plotgrid (lay:: ExpansionLayout , P)
28
+ function plotgrid_layout (lay:: ExpansionLayout , P)
26
29
args = arguments (lay,P)
27
30
_mul_plotgrid (map (MemoryLayout,args), args)
28
31
end
0 commit comments