[Numpy-discussion] minor improvment to ones

Robert Kern robert.kern at gmail.com
Fri Jan 30 15:31:07 EST 2009


On Fri, Jan 30, 2009 at 11:26, Ryan May <rmay31 at gmail.com> wrote:
> Christopher Barker wrote:
>>> On 1/30/2009 3:22 PM, Neal Becker wrote:
>>>
>>>> Now what would be _really_ cool is a special array type that would represent
>>>> a constant array without wasting memory.
>>
>> Can't you do that with scary stride tricks? I think I remember some
>> discussion of this a while back.
>
> I think that's right, but at that point, what gain is that over using a regular
> constant and relying on numpy's broadcasting?

The filled array may be providing some of the shape information that's
not in the other arrays.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list