Why array size N*1 Array{type,2} can’t be automatically converted to Vector or Array{type, 1}. It will be convenient and logical.
This would be really bad as it would break type stability. Specifically, it would mean that the type of Matrix*Matrix
would either be Vector
or Matrix
depending on the sizes.
2 Likes
What is the context of your question? Please provide a minimal example.
1 Like
Yes, you are right. I agree.
At the same time for a human, vector and N*1 array is almost the same, so
df[:,:cl].= (Array{type,2})[:,1] is look strange and unreadable.
If it is broadcasting what you want, it will be fixed soon: One-dimensional matrix and vectors in broadcast
3 Likes