Am 10.07.2009 12:00, Riccardo (Jack) Lucchetti schrieb:
On Fri, 10 Jul 2009, Riccardo (Jack) Lucchetti wrote:
>
> Right. I must have said to myself "I need to do this. Oh well, not
> now" a thousand times. It's now in CVS. The user-level function is
> called rev(). Example:
>
thanks, that's great!
> ? A = rev(I(3))
> A = rev(I(3))
> Generated matrix A
> ? print A
> print A
> A (3 x 3)
>
> 0 0 1
> 0 1 0
> 1 0 0
Oh, sorry, I should have said: the rev() function reverses the order of
the _rows_ of the matrix (from the example above, it could have been the
columns).
Would it be worthwhile to generalize this to columns as well? Maybe
using an optional second argument or so. I'm not sure about it, and I'm
aware of rev(A')', just asking as long as it's still in "design
stage".
thanks,
sven