-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
error converting 1-dimensional Matrix to Vector #3990
Comments
|
@JeffBezanson Ah, I see. It's the assignment to the field causing the error instead of computation. |
I thought we'd agreed that |
The only possible exception is if there is an embedding of vectors as |
It's very inconvenient that some functions only work with Array{T,1} and you have a Array{T,2} with one "dummy" dimension, or vise versa. Given that squeeze is deprecated, is there any handy way of converting back and forth between Array{T,1} and Array{T,2} ? |
And |
But I think
Feature, but not without some controversy at the time it was discussed. Trailing dimensions of length 1 are dropped, no others are. |
I should also say that what you're experiences are transitional issues typical for Matlab users (I went through them myself). Once you get used to the Julian way I predict you'll be reluctant to go back. |
There isn't one yet. |
That would be truly awesome to have. If you're willing to take a stab at starting one (or even, just taking notes about things that surprise you as you learn Julia), it would be a huge contribution. |
http://mathesaurus.sourceforge.net/ is slightly dated, but might be a good starting point, although I have to express total ignorance at how to convert xml/relaxng to a usable document. |
I had made a very simple side-by-side function reference comparing Julia/R and Julia+DataFrames/R: https://docs.google.com/spreadsheet/ccc?key=0Ai9cmDERDCGgdDJ6VDQtQjBGWm5LTzh6R0lRNHY1RVE&usp=sharing It's probably not ideal for your purposes, but it's complete enough that you might find some use in it. |
Is there anything actionable here? Looks like this is mostly stylistic differences, so any objections to close? |
Covered by #3262. |
Normally computation like
rand(5,1) + rand(5)
is automatically handled smoothly. But sometimes it fails.For this example,
test2
will fail complainingThe text was updated successfully, but these errors were encountered: