You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the manual, the documentation about array assignment says:
The size of X should be (length(I_1), length(I_2), ..., length(I_n)), and the value in location (i_1, i_2, ..., i_n) of A is overwritten with the value X[I_1[i_1], I_2[i_2], ..., I_n[i_n]].
Of course the reader understands that some sort of recycling takes place, but it would be good to state it explicitly when this applies. Also, "should" looks weird: either X has the correct dimensions, or it hasn't; either Julia does something with the value, or it triggers an error: "must" would be more appropriate.
The text was updated successfully, but these errors were encountered:
In the manual, the documentation about array assignment says:
http:https://docs.julialang.org/en/latest/manual/arrays/#assignment
But this "should" does not correspond to what is shown in the example:
Of course the reader understands that some sort of recycling takes place, but it would be good to state it explicitly when this applies. Also, "should" looks weird: either X has the correct dimensions, or it hasn't; either Julia does something with the value, or it triggers an error: "must" would be more appropriate.
The text was updated successfully, but these errors were encountered: