[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: diagonal & permutation matrices
From: |
Jaroslav Hajek |
Subject: |
Re: diagonal & permutation matrices |
Date: |
Sun, 16 Nov 2008 18:17:58 +0100 |
On Sun, Nov 16, 2008 at 3:16 PM, Thorsten Meyer <address@hidden> wrote:
> Jaroslav Hajek wrote:
>> I've run into two issues:
>>
>> 1. What to do when printing/saving? To honor Matlab compatibility, we
>> should display & save them as full matrices. However, it is certainly
>> much more informational to print them specially, and seems a little
>> bit weird for Octave to cripple its own data when saving variables.
> The default file format for saving is still octave's own ascii format.
> Isn't that incompatible anyway? And would there be any way of saving such
> special matrices in matlab's binary format without breaking compatibility?
>
> Does octave's display need to be compatible (or is it at the moment?)? How
> would you display a diagonal or permutation matrix?
>
> Thorsten
>
>
I was thinking about something like
ans =
Diagonal Matrix (10 by 10)
0.1
0.2
0.3
...
ans =
Row Permutation Matrix (10 by 10)
1
3
2
5
4
7
6
9
8
10
or maybe row vectors instead of column vectors...
--
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz