JuliaLang/julia — pull request #4263 by malmaud (2013-09-12 16:41:12+00:00)
Title: Reshape can accept : to signal an implicit dimension

If one dimension passed to reshape is a :, it is replaced with the value which is implicitly defined by the other dimensions to make the reshape valid (or throws an error if there is no such value).

Example:

```julia
julia> x=rand(10)
```

All of these are equivalent:
```julia
julia> reshape(x, 5, :)
julia> reshape(x, , 2)
julia> reshape(x, 5, 2)
```

Throws an error:
```julia
julia> reshape(x, 3, :)
```

Closes #4250