Skip to content

Commit

Permalink
Use Colon() instead of 1:n in ppeval
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Jan 30, 2017
1 parent 7e8ef28 commit e92c1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapreduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function _ppeval(f, A...; dim = map(ndims, A))
args = []
for i = 1:narg
push!(dims, ndims(A[i]))
push!(idx, Any[1:size(A[i], d) for d in 1:dims[i]])
push!(idx, Any[Colon() for d in 1:dims[i]])
if dim[i] > 0
idx[i][dim[i]] = 1
push!(args, view(A[i], idx[i]...))
Expand Down

0 comments on commit e92c1c6

Please sign in to comment.