Skip to content

Commit

Permalink
Added extras/bitarray.jl (almost complete)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobaldassi committed Apr 9, 2012
1 parent 016b4a3 commit 8b188a9
Show file tree
Hide file tree
Showing 2 changed files with 896 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ function fill!{T<:Union(Integer,Float)}(a::Array{T}, x)
return a
end

fill(v, dims::Dims) = fill!(Array(typeof(v), dims), v)
fill(v, dims::Integer...) = fill!(Array(typeof(v), dims...), v)
fill(v::Array, dims::Dims) = fill!(Array(typeof(v), dims), v)
fill(v::Array, dims::Integer...) = fill!(Array(typeof(v), dims...), v)

This comment has been minimized.

Copy link
@HarlanH

HarlanH Apr 11, 2012

Contributor

this breaks, presumably among other things, falses(5).


zeros{T}(::Type{T}, args...) = fill!(Array(T, args...), zero(T))
zeros(args...) = fill!(Array(Float64, args...), float64(0))
Expand Down
Loading

0 comments on commit 8b188a9

Please sign in to comment.