octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diagonal matrices specializations


From: Søren Hauberg
Subject: Re: diagonal matrices specializations
Date: Wed, 03 Dec 2008 14:37:40 +0100

ons, 03 12 2008 kl. 14:31 +0100, skrev Jaroslav Hajek:
> >> ans =
> >> diagonal matrix (5x5)
> >>    1       ..      0
> >>        2
> >>    :       3       :
> >>                4
> >>    0       ..      5
> >>
> >> the last form seems attractive, but maybe requires a bit more thinking
> >> about how to place the dots etc.
> >
> > This I don't think will work. It would be very hard to read a 20x20
> > matrix in a terminal with a width of 80 chars. But I agree, that it
> > looks nice for small matrices.
> >
> 
> But anyone trying to work visually with 20x20 matrices on a 80-column
> terminal is bound to have problems.

Not if you print it like a vector, which I think we should just always
do.

> The problem with displaying a permutation is that there are two ways
> to view a permutation matrix:
> a column permutation matrix (multiplication from the right) and row
> permutation (multiplication from the left).
> Of course, any permutation matrix can act in both ways, with inverse
> permutations.

Good point, I thought of it like that.

Soren



reply via email to

[Prev in Thread] Current Thread [Next in Thread]