Re: [Numpy-discussion] ix_ and copies

2010-05-30 Thread Anne Archibald
On 30 May 2010 11:25, Keith Goodman wrote: > On Sat, May 29, 2010 at 2:49 PM, Anne Archibald > wrote: >> On 29 May 2010 15:09, Robert Kern wrote: >>> On Sat, May 29, 2010 at 12:27, Keith Goodman wrote: Will making changes to arr2 never change arr1 if arr2 = arr1[np.ix_(*lists)] >

Re: [Numpy-discussion] ix_ and copies

2010-05-30 Thread Keith Goodman
On Sat, May 29, 2010 at 2:49 PM, Anne Archibald wrote: > On 29 May 2010 15:09, Robert Kern wrote: >> On Sat, May 29, 2010 at 12:27, Keith Goodman wrote: >>> Will making changes to arr2 never change arr1 if >>> >>> arr2 = arr1[np.ix_(*lists)] >>> >>> where lists is a list of (index) lists? np.ix_

Re: [Numpy-discussion] ix_ and copies

2010-05-29 Thread Anne Archibald
On 29 May 2010 15:09, Robert Kern wrote: > On Sat, May 29, 2010 at 12:27, Keith Goodman wrote: >> Will making changes to arr2 never change arr1 if >> >> arr2 = arr1[np.ix_(*lists)] >> >> where lists is a list of (index) lists? np.ix_ returns a tuple of >> arrays so I'm guessing (and hoping) the a

Re: [Numpy-discussion] ix_ and copies

2010-05-29 Thread Robert Kern
On Sat, May 29, 2010 at 12:27, Keith Goodman wrote: > Will making changes to arr2 never change arr1 if > > arr2 = arr1[np.ix_(*lists)] > > where lists is a list of (index) lists? np.ix_ returns a tuple of > arrays so I'm guessing (and hoping) the answer is yes. Correct. -- Robert Kern "I have

[Numpy-discussion] ix_ and copies

2010-05-29 Thread Keith Goodman
Will making changes to arr2 never change arr1 if arr2 = arr1[np.ix_(*lists)] where lists is a list of (index) lists? np.ix_ returns a tuple of arrays so I'm guessing (and hoping) the answer is yes. ___ NumPy-Discussion mailing list NumPy-Discussion@scip