@@ -472,6 +472,8 @@ macro gbmatrixtype(typename)
472472 $ typename (dims:: Dims{2} , x:: T ; fill = defaultfill (T)) where T =
473473 $ typename {T} (dims, x, fill)
474474
475+ $ typename {T} (nrows, ncols, x; fill:: F = defaultfill (T)) where {T, F} =
476+ $ typename {T, F} ((nrows, ncols), x; fill)
475477 $ typename (nrows, ncols, x:: T ; fill = defaultfill (T)) where T =
476478 $ typename {T} ((nrows, ncols), x; fill)
477479 $ typename (dims:: Tuple{<:Integer} , x:: T ; fill = defaultfill (T)) where T =
@@ -726,12 +728,14 @@ macro gbvectortype(typename)
726728 $ typename (dims:: Dims{1} , x:: T ; fill = defaultfill (T)) where T =
727729 $ typename {T} (dims, x, fill)
728730
729- $ typename (nrows, ncols, x:: T ; fill = defaultfill (T)) where T =
730- $ typename {T} ((nrows, ncols), x; fill)
731+ $ typename {T} (nrows, x; fill = defaultfill (T)) where T =
732+ $ typename {T} ((nrows,), x; fill)
733+ $ typename (nrows, x:: T ; fill = defaultfill (T)) where T =
734+ $ typename {T} (nrows, x; fill)
731735 $ typename (dims:: Tuple{<:Integer} , x:: T ; fill = defaultfill (T)) where T =
732736 $ typename {T} (dims... , x; fill)
733- $ typename (size:: Tuple{Base.OneTo, Base.OneTo } , x:: T ; fill = defaultfill (T)) where T =
734- $ typename {T} (size[1 ]. stop, size[ 2 ] . stop, x; fill)
737+ $ typename (size:: Tuple{Base.OneTo} , x:: T ; fill = defaultfill (T)) where T =
738+ $ typename {T} (size[1 ]. stop, x; fill)
735739
736740 function $typename {T, F} (v:: AbstractGBVector ; fill = getfill (v)) where {T, F}
737741 return convert ($ typename{T, F}, v; fill)
0 commit comments