@@ -65,8 +65,8 @@ function AlmostBandedMatrix{T}(::UndefInitializer, mn::NTuple{2, Integer},
6565 return AlmostBandedMatrix (undef, T, mn, lu, rank)
6666end
6767
68- function AlmostBandedMatrix (
69- :: UndefInitializer , mn :: NTuple{2, Integer} , lu :: NTuple{ 2, Integer} , rank:: Integer )
68+ function AlmostBandedMatrix (:: UndefInitializer , mn :: NTuple{2, Integer} , lu :: NTuple {
69+ 2 , Integer}, rank:: Integer )
7070 return AlmostBandedMatrix (undef, Float64, mn, lu, rank)
7171end
7272
8888 # copy `fill` into `bands` in the correct locations
8989 l, u = bandwidths (bands)
9090 for i in 1 : size (fill, 1 ), j in max (1 , i - l): min (size (bands, 2 ), i + u)
91+
9192 @inbounds bands[i, j] = fill[i, j]
9293 end
9394 return nothing
@@ -199,8 +200,8 @@ function LinearAlgebra.triu!(A::AlmostBandedMatrix)
199200end
200201
201202# TODO : Support views properly
202- function sublayout (:: AlmostBandedLayout ,
203- :: Type{<:Tuple{ AbstractUnitRange{Int}, AbstractUnitRange{Int}}} )
203+ function sublayout (:: AlmostBandedLayout , :: Type { <: Tuple {
204+ AbstractUnitRange{Int}, AbstractUnitRange{Int}}})
204205 return AlmostBandedLayout ()
205206end
206207
@@ -283,8 +284,7 @@ function _almostbanded_qr(_, A)
283284 # Expand the bandsize for the QR factorization
284285 # # Bypass the safety checks in `AlmostBandedMatrix`
285286 return almostbanded_qr! (
286- AlmostBandedMatrix {eltype(A)} (BandedMatrix (copy (B), (l, l + u)), copy (L)),
287- Val (true ))
287+ AlmostBandedMatrix {eltype(A)} (BandedMatrix (copy (B), (l, l + u)), copy (L)), Val (true ))
288288end
289289
290290# Band size not yet expanded!
@@ -379,8 +379,8 @@ _almostbanded_widerect_ldiv!(::QR{T}, B) where {T} = error("Not implemented")
379379
380380const UpperLayoutMatrix{T} = UpperTriangular{T, <: LayoutMatrix{T} }
381381
382- for Typ in (
383- :StridedVector , :StridedMatrix , :AbstractVecOrMat , :UpperLayoutMatrix , :LayoutMatrix )
382+ for Typ in
383+ ( :StridedVector , :StridedMatrix , :AbstractVecOrMat , :UpperLayoutMatrix , :LayoutMatrix )
384384 @eval function ldiv! (A:: QR{T, <:AlmostBandedMatrix} , B:: $Typ{T} ) where {T}
385385 m, n = size (A)
386386 if m == n
0 commit comments