Skip to content

Commit bd81947

Browse files
simonbyrneJeffBezanson
authored andcommitted
change promotion behaviour of cumsum and cumsum! to match sum
1 parent db6ebfa commit bd81947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sparsematrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ function getindex(A::SparseMatrixCSC{Tv,Ti}, I::AbstractArray) where {Tv,Ti}
23062306
end
23072307
end
23082308
end
2309-
colptrB = cumsum(colptrB)
2309+
cumsum!(colptrB,colptrB)
23102310
if n > (idxB-1)
23112311
deleteat!(nzvalB, idxB:n)
23122312
deleteat!(rowvalB, idxB:n)

0 commit comments

Comments
 (0)