rm Zeros setindex
This commit is contained in:
parent
f39e184814
commit
894c075b6d
@ -193,11 +193,6 @@ Base.getindex(xs::Zeros{T,N}, I::Int) where {T,N} = zero(T)
|
|||||||
Base.getindex(xs::Zeros{T,N}, inds::Union{Base.OneTo, Base.UnitRange}) where {T,N} =
|
Base.getindex(xs::Zeros{T,N}, inds::Union{Base.OneTo, Base.UnitRange}) where {T,N} =
|
||||||
Zeros(T, inds.stop)
|
Zeros(T, inds.stop)
|
||||||
|
|
||||||
Base.setindex(xs::Zeros, args...) =
|
|
||||||
error("setindex disallowed on Zeros Array")
|
|
||||||
Base.setindex!(xs::Zeros, args...) =
|
|
||||||
error("setindex! disallowed on Zeros Array")
|
|
||||||
|
|
||||||
Base.collect(xs::Zeros{T,N}) where {T,N} = fill(zero(T), size(xs))
|
Base.collect(xs::Zeros{T,N}) where {T,N} = fill(zero(T), size(xs))
|
||||||
|
|
||||||
@adjoint reshape(xs::Zeros{T}, dims...) where T =
|
@adjoint reshape(xs::Zeros{T}, dims...) where T =
|
||||||
|
Loading…
Reference in New Issue
Block a user