Permalink
Browse files

removed redundant eltype definitions for darray and sharedarray

  • Loading branch information...
1 parent 0dbbaf7 commit cf95ec90ca1f5a4727ce6f4e58f828a50850d98d @amitmurthy amitmurthy committed Feb 26, 2014
Showing with 0 additions and 4 deletions.
  1. +0 −2 base/darray.jl
  2. +0 −2 base/sharedarray.jl
View
@@ -55,8 +55,6 @@ similar(d::DArray, T)= similar(d, T, size(d))
similar{T}(d::DArray{T}, dims::Dims)= similar(d, T, dims)
similar{T}(d::DArray{T})= similar(d, T, size(d))
-eltype{T}(d::DArray{T}) = T
-
size(d::DArray) = d.dims
procs(d::DArray) = d.pmap
View
@@ -216,8 +216,6 @@ similar(S::SharedArray, T) = similar(S, T, size(S))
similar(S::SharedArray, dims::Dims) = similar(S, eltype(S), dims)
similar(S::SharedArray) = similar(S, eltype(S), size(S))
-eltype(S::SharedArray) = eltype(S.s)
-
map(f::Callable, S::SharedArray) = (S2 = similar(S); S2[:] = S[:]; map!(f, S2); S2)
reduce(f::Function, S::SharedArray) =

0 comments on commit cf95ec9

Please sign in to comment.