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

Row extraction does not work as expected anymore #16317

Closed
veita opened this issue May 11, 2016 · 2 comments
Closed

Row extraction does not work as expected anymore #16317

veita opened this issue May 11, 2016 · 2 comments

Comments

@veita
Copy link

veita commented May 11, 2016

Column extraction is broken in the current 0.5.0 development branch.

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.5 (2016-03-18 00:58 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-w64-mingw32
julia> t = [10 * r + c for r in 1:3, c in 1:3]
3x3 Array{Int64,2}:
 11  12  13
 21  22  23
 31  32  33

julia> t[1, :]
1x3 Array{Int64,2}:
 11  12  13
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+4032 (2016-05-10 19:55 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit c9d4051* (0 days old master)
|__/                   |  x86_64-pc-linux-gnu
julia> t = [10 * r + c for r in 1:3, c in 1:3]
3×3 Array{Int64,2}:
 11  12  13
 21  22  23
 31  32  33

julia> t[1, :]
3-element Array{Int64,1}:
 11
 12
 13
@andreasnoack
Copy link
Member

See #13612

@yuyichao
Copy link
Contributor

This is expected change. Use 1:1 to avoid dropping the dimension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants