From: Robert K. <rob...@gm...> - 2006-10-18 16:56:37
|
Christian Kristukat wrote: > Hi, > > it seems that -1 as axis parameter is interpreted like in array indexing, i.e. > -1 means the last axis rather than meaning the only axis of the flattened > representation, like for example with take(). > Is that intendend? take(axis=-1) also goes over the last axis. axis=None operates over the flattened array. axis=None is the default for take(), but axis=-1 is default for sort() since axis=None doesn't make much sense for an inplace operation and is not permitted. -- 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 |