# [PYTHON MATRIX-SIG] default axes

**Janne Sinkkonen
**
janne@avocado.pc.helsinki.fi

*14 Aug 1996 00:22:36 +0300*

Jim Hugunin <hugunin@mit.edu> writes:
>* ufunc.reduce, ufunc.accumulate, sort, argsort, argmax, ...
*>* fft
*
For ufunc.add.reduce(), sort() & Co., and fft(), -1 seems the most
natural choice for me.
>* take, choose, repeat, compress
*
About take(), I don't really know. Maybe 0. choose()... does it have a
default axis? repeat() is like concatenate(), the default axis should
be 0. compress()... no idea.
trace() and diagonal()... should they operate on the diagonal between
-1 and -2, especially if reduce and the others will use the default
axis -1. If the default conceptualization is that there is an
N-1-dimensional array of vectors, for trace() it would seem natural to
think that the array is an N-2-dimensional array of
matrices. Likewise, dot() should reduce -1.
--
Janne Sinkkonen <janne@iki.fi> <URL: http://www.iki.fi/~janne/ >
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================