Skip to content

Commit 0a88a8f

Browse files
authored
Specify init in maximum in subblockbandwidths (#218)
1 parent 629276d commit 0a88a8f

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)