Ahh ok, thank you. I don't know why I was searching somrthing more complicated.
Le lundi 30 juin 2014 17:01:16 UTC+2, Stefan Karpinski a écrit : > > Linking directly to the relevant slide is helpful: > > http://stla.github.io/JULIAGFI01/#16 > > You don't need a deepcopy, just a copy; there's no way to avoid it if you > don't want to modify the original matrix. In R there's an implicit copy > that happens as soon as you modify the matrix so the only difference is > that the copy in Julia is explicit. > > > On Mon, Jun 30, 2014 at 10:43 AM, 'Stéphane Laurent' via julia-users < > [email protected] <javascript:>> wrote: > >> You don't like my slides ? :-( >> I'd like to know how to avoid the deepcopy at the beginning of >> updatePoly1(). >> >> Le dimanche 29 juin 2014 23:00:30 UTC+2, Stéphane Laurent a écrit : >> >>> Thank you everyone for your reply. >>>> >>>> But finally, what should I do ? My real function is shown on slide 16 >>> here <http://stla.github.io/JULIAGFI01/#1>. Basically the function >>> takes an array and modifies two columns. I would also be glad to get your >>> comments about all the code shown in these slides. My functions work, but >>> I'm not sure I'm using the best practices. >>> >> >
