[Numpy-discussion] Counting array elements

Robert Kern rkern at ucsd.edu
Sun Oct 31 16:01:04 CST 2004


Tim Hochberg wrote:
> Robert Kern wrote:
> 
>> Tim Hochberg wrote:
>>
>>> Could you describe the SciPy axis convention: I'm not familiar with it.
>>
>> axis=-1
> 
> OK, so Numarray (currently) and Numeric use axis=0,

Well, sometimes.  :-)

> SciPy uses axis=-1 

I should note that this convention is for Scipy-defined functions. With 
one unfortunate exception (cumsum), Scipy does not overwrite Numeric's 
axis default for Numeric-defined functions.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Numpy-discussion mailing list