We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c466c24 commit f4219afCopy full SHA for f4219af
src/utils.jl
@@ -34,13 +34,6 @@ end
34
@inline _restructure(y, x) = restructure(y, x)
35
@inline _restructure(y::Number, x::Number) = x
36
37
-@inline function __init_ones(x)
38
- w = similar(x)
39
- recursivefill!(w, true)
40
- return w
41
-end
42
-@inline __init_ones(x::StaticArray) = ones(typeof(x))
43
-
44
@inline __maybe_unaliased(x::Union{Number, SArray}, ::Bool) = x
45
@inline function __maybe_unaliased(x::AbstractArray, alias::Bool)
46
# Spend time coping iff we will mutate the array
0 commit comments