Skip to content

Commit 1fa425d

Browse files
Merge pull request #213 from JuliaArrays/ChrisRackauckas-patch-1
Improve banded matrix sparsity calculations
2 parents ad11cc1 + dc92b35 commit 1fa425d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArrayInterface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ function __init__()
887887
(startinds[blockcolors[i]]:endinds[blockcolors[i]])[1:cols[i]]
888888
for i = 1:nblock
889889
]
890-
return vcat(colors...)
890+
return reduce(vcat,colors)
891891
end
892892

893893
function matrix_colors(A::BlockBandedMatrices.BandedBlockBandedMatrix)
@@ -909,7 +909,7 @@ function __init__()
909909
_cycle(startinds[blockcolors[i]]:endinds[blockcolors[i]], cols[i])
910910
for i = 1:nblock
911911
]
912-
return vcat(colors...)
912+
return reduce(vcat,colors)
913913
end
914914
end
915915
end

0 commit comments

Comments
 (0)