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)]
>
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_
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
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
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