Skip to content

Commit 5a87fc9

Browse files
committed
No need to use collect
1 parent 60d09a8 commit 5a87fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/highlevel/coloring.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function (alg::JacPrototypeSparsityDetection)(ad::AbstractSparseADType, args...;
1818
J = alg.jac_prototype
1919
reverse_mode = ad isa AbstractSparseReverseMode
2020
colorvec = matrix_colors(J, alg.alg; partition_by_rows = reverse_mode)
21-
(nz_rows, nz_cols) = collect.(ArrayInterface.findstructralnz(J))
21+
(nz_rows, nz_cols) = ArrayInterface.findstructralnz(J)
2222
return MatrixColoringResult(colorvec, J, nz_rows, nz_cols)
2323
end
2424

0 commit comments

Comments
 (0)