Skip to content

Commit

Permalink
Enable pre-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Aug 19, 2015
1 parent 84a1c1a commit 897136b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ArrayViews.jl
@@ -1,3 +1,5 @@
VERSION >= v"0.4.0-dev+6521" && __precompile__(true)

module ArrayViews

import Base: eltype, ndims, size, length, stride, strides
Expand Down
2 changes: 1 addition & 1 deletion src/convenience.jl
Expand Up @@ -36,4 +36,4 @@ ellipview{T}(a::DenseArray{T,2}, i::Union(Integer, UnitRange)) = view(a, :, i)
ellipview{T}(a::DenseArray{T,3}, i::Union(Integer, UnitRange)) = view(a, :, :, i)
ellipview{T}(a::DenseArray{T,4}, i::Union(Integer, UnitRange)) = view(a, :, :, :, i)
ellipview{T}(a::DenseArray{T,5}, i::Union(Integer, UnitRange)) = view(a, :, :, :, :, i)
ellipview{T,N}(a::DenseArray{T,N}, i::Union(Integer, UnitRange)) = view(a, ntuple(N-1, i->Colon())..., i)
ellipview{T,N}(a::DenseArray{T,N}, i::Union(Integer, UnitRange)) = view(a, ntuple(i->Colon(),N-1)..., i)

0 comments on commit 897136b

Please sign in to comment.