Skip to content

Commit

Permalink
Merge pull request #188 from JuliaArrays/compiletimes
Browse files Browse the repository at this point in the history
Avoid broadcast to reduce compile times
  • Loading branch information
ChrisRackauckas authored Aug 11, 2021
2 parents 532bddd + 7515579 commit d57f72d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ArrayInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ function zeromatrix(u)
x .* x' .* false
end

# Reduces compile time burdens
function zeromatrix(u::Array{T}) where T
out = Matrix{T}(undef, length(u), length(u))
fill!(out,false)
end

"""
restructure(x,y)
Expand Down

0 comments on commit d57f72d

Please sign in to comment.