Skip to content

Commit

Permalink
Concretely specify the type of dims in SubArray
Browse files Browse the repository at this point in the history
This allows the type of `size(S::SubArray)` to be inferred.
  • Loading branch information
timholy committed Feb 6, 2014
1 parent 2c85e5d commit 27e2628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/subarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ typealias RangeIndex Union(Int, Range{Int}, Range1{Int})
type SubArray{T,N,A<:AbstractArray,I<:(RangeIndex...,)} <: AbstractArray{T,N}
parent::A
indexes::I
dims::Dims
dims::NTuple{N,Int}
strides::Array{Int,1} # for accessing parent with linear indexes
first_index::Int

Expand Down

0 comments on commit 27e2628

Please sign in to comment.