On Tue, Mar 1, 2011 at 8:51 AM, Wes McKinney wrote:
> On Mon, Feb 28, 2011 at 10:52 PM, Wes McKinney
> wrote:
> > On Mon, Feb 28, 2011 at 7:24 PM, Pierre GM wrote:
> >>
> >> On Mar 1, 2011, at 1:05 AM, Bruce Southey wrote:
> >>
> >>> On Mon, Feb 28, 2011 at 4:52 PM, Wes McKinney
> wrote:
> >>>
On Mon, Feb 28, 2011 at 10:52 PM, Wes McKinney wrote:
> On Mon, Feb 28, 2011 at 7:24 PM, Pierre GM wrote:
>>
>> On Mar 1, 2011, at 1:05 AM, Bruce Southey wrote:
>>
>>> On Mon, Feb 28, 2011 at 4:52 PM, Wes McKinney wrote:
I'm having some trouble with the zeros_like function via np.fix:
On Mon, Feb 28, 2011 at 7:24 PM, Pierre GM wrote:
>
> On Mar 1, 2011, at 1:05 AM, Bruce Southey wrote:
>
>> On Mon, Feb 28, 2011 at 4:52 PM, Wes McKinney wrote:
>>> I'm having some trouble with the zeros_like function via np.fix:
>>>
>>> def zeros_like(a):
>>> if isinstance(a, ndarray):
>>>
On Mar 1, 2011, at 1:05 AM, Bruce Southey wrote:
> On Mon, Feb 28, 2011 at 4:52 PM, Wes McKinney wrote:
>> I'm having some trouble with the zeros_like function via np.fix:
>>
>> def zeros_like(a):
>>if isinstance(a, ndarray):
>>res = ndarray.__new__(type(a), a.shape, a.dtype, order=
On Mon, Feb 28, 2011 at 4:52 PM, Wes McKinney wrote:
> I'm having some trouble with the zeros_like function via np.fix:
>
> def zeros_like(a):
> if isinstance(a, ndarray):
> res = ndarray.__new__(type(a), a.shape, a.dtype, order=a.flags.fnc)
> res.fill(0)
> return res
>
I'm having some trouble with the zeros_like function via np.fix:
def zeros_like(a):
if isinstance(a, ndarray):
res = ndarray.__new__(type(a), a.shape, a.dtype, order=a.flags.fnc)
res.fill(0)
return res
try:
wrap = a.__array_wrap__
except AttributeError: