But A[p, :] makes copies, and I want it to be in place. Davide
On Wednesday, March 11, 2015 at 2:02:31 PM UTC, Tim Holy wrote: > > A[p, :] > > --Tim > > On Wednesday, March 11, 2015 05:49:47 AM Davide Lasagna wrote: > > Hi, > > > > > > permute!(v, p) permutes the elements of v according to the permutation > > vector p. > > > > Is there any equivalent built in function for permuting rows of a > matrix? > > Given the memory layout of julia matrices it should not be too difficult > to > > have a similar function for matrices as well. > > > > Thanks, > > > > Davide > >