Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reshape for ranges is missing #428

Closed
earl opened this issue Feb 21, 2012 · 1 comment
Closed

Reshape for ranges is missing #428

earl opened this issue Feb 21, 2012 · 1 comment
Assignees
Labels
kind:bug Indicates an unexpected problem or unintended behavior

Comments

@earl
Copy link

earl commented Feb 21, 2012

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>
@JeffBezanson
Copy link
Sponsor Member

Here's a workaround for now: reshape([1:16], 4, 4)

@ghost ghost assigned JeffBezanson Feb 21, 2012
JeffBezanson added a commit that referenced this issue Feb 21, 2012
this turned out to be caused by a deeper bug
LilithHafner pushed a commit to LilithHafner/julia that referenced this issue Oct 11, 2021
Remove deprecations a year or older
Keno pushed a commit that referenced this issue Oct 9, 2023
These make a substantial contribution to reducing latency for Revise 3,
specifically in the area of handling atsign-require blocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants