Skip to content

Commit bd18d20

Browse files
committed
Specify init in maximum in subblockbandwidths
1 parent 00aebb8 commit bd18d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BandedBlockBandedMatrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ subblockbandwidths(A::BandedBlockBandedMatrix) = (A.λ, A.μ)
288288
# default is to use whole block
289289
_subblockbandwidths(A::AbstractMatrix, ::NTuple{2,OneTo{Int}}) = bandwidths(A)
290290
function _subblockbandwidths(A::AbstractMatrix, _)
291-
M,N = map(maximum, blocklengths.(axes(A)))
291+
M,N = map(x -> maximum(x, init=0), blocklengths.(axes(A)))
292292
M-1,N-1
293293
end
294294

0 commit comments

Comments
 (0)