[PYTHON MATRIX-SIG] alpha2 and default axes

Carlos Fonseca fonseca@gaivota.demon.co.uk
Wed, 14 Aug 1996 18:22:10 +0100 (BST)


On Tue, 13 Aug 1996, Jim Hugunin
wrote:
> [...]
>
> What to do about default axes?
> 
> I'd really like some more feedback from you people out there as to what
> the default axes for the various NumPy functions should be.  The basic
> functions I see here are:
> 
> ufunc.reduce, ufunc.accumulate, sort, argsort, argmax, ...
> fft

-1

> take

-1, so that take(b,argsort(a)) works

> choose, 

Not applicable?

> repeat,

repeats= could actually be a tuple containing the number of times each
dimension should be repeated. In this case, repeats[-1] should correspond
to the last dimension of a, and any missing dimensions in repeats= 
should default to one. So, axis=-1

> compress

-1, same as take()

> concatenate

0, I *think*.

In all cases, the ability to use non-default axes should be preserved.

Carlos



=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================