JuliaLang/julia — Issue #428: reshape for ranges is missing
Author: earl
Created: 2012-02-21 01:52:44+00:00
State: open

The manual gives examples of reshaping ranges (e.g. in the "Indexing" subsection of the "Arrays" section: http://julialang.org/manual/arrays/#Indexing), but `reshape` seems to be not (yet?) implemented for ranges:

julia> reshape(1:16, 4, 4)
no method similar(Range1{Int64},(Int64,Int64),(Int64,))
in method_missing, /opt/julia/j/base.j:58
in reshape, /opt/julia/j/abstractarray.j:59
in reshape, /opt/julia/j/abstractarray.j:65

julia>