On 7 March 2016 at 16:37, Tom Breloff <[email protected]> wrote: > So in conclusion, I really was overusing collect(). > > > Yup... and this is one reason I think the change is valuable... it helps > make people think "why did they do this??" >
Yes, indeed. > if there is a way to avoid collect() for a matrix operation, I'd love to >> know. > > > What type of operation do you mean? Maybe there's a way? If you're > referring to your example above, you can of course do: ones(5)*(0:0.01:1)' > > Oh! Thanks! I hadn't occurred to me that you could transpose a range. I had previously tried it without the parenthesis, but of course that didn't work. Anyway, with this tip, I have removed the last remaining uses of collect() from my code base. Thanks! Cheers, Daniel.
