Skip to content

Commit 7515579

Browse files
Avoid broadcast to reduce compile times
1 parent 532bddd commit 7515579

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ArrayInterface.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@ function zeromatrix(u)
380380
x .* x' .* false
381381
end
382382

383+
# Reduces compile time burdens
384+
function zeromatrix(u::Array{T}) where T
385+
out = Matrix{T}(undef, length(u), length(u))
386+
fill!(out,false)
387+
end
388+
383389
"""
384390
restructure(x,y)
385391

0 commit comments

Comments
 (0)