Duplicate entries in a matrix
Robert Kern
robert.kern at gmail.com
Thu Jan 19 18:51:32 EST 2006
Chris Lasher wrote:
> Now that's definitely what I'm looking for! Thanks!
>
> By the way, was this line
>
> In [5]: C = repeat(B, [1,2,1], axis=-1)
>
> supposed to have a positive 1 value for axis? It works either way, I
> see. Is it like a lookup, where an index of -1 returns the last value?
> If that were true, I supposed the evaluation would be 1, and thus gives
> the same result.
That is correct.
--
Robert Kern
robert.kern at gmail.com
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list