Skip to content

Commit

Permalink
Merge pull request #3 from devmotion/similar
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes authored Mar 25, 2019
2 parents ceba6f4 + 0372525 commit 38e3a88
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ end
Base.size(x::TrackedArray, i::Integer, j::Integer, is::Integer...) =
size(data(x), i, j, is...)

Base.similar(x::TrackedArray, dims::Union{AbstractUnitRange,Integer}...) =
similar(data(x), dims...)

Base.similar(x::TrackedArray, T::Type) = similar(data(x), T)
Base.similar(x::TrackedArray, T::Type, dims::Dims) = similar(data(x), T, dims)

for op in [:(==), :]
@eval Base.$op(x::TrackedArray, y::AbstractArray) = Base.$op(data(x), y)
Expand Down

0 comments on commit 38e3a88

Please sign in to comment.