toon-members
[Top][All Lists]
Advanced

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

Re: [Toon-members] Identity bug with -


From: E. Rosten
Subject: Re: [Toon-members] Identity bug with -
Date: Tue, 5 May 2009 17:27:17 +0100 (BST)

On Tue, 5 May 2009, Georg Klein wrote:


Matrix<> m999(3,3);
 for(int i=0; i<3; i++)
   for(int j=0; j<3; j++)
     m999[i][j] = 999;

cout << "m999: " << endl;
cout << m999 << endl;
cout << "Identity - 999 " << endl;
cout << Identity - m999 << endl;


Gives:

m999:
999 999 999
999 999 999
999 999 999

Identity - 999
998 999 999
999 998 999
999 999 998

The latter is incorrect...

Corrected.


-Ed



--
(You can't go wrong with psycho-rats.)(http://mi.eng.cam.ac.uk/~er258)

/d{def}def/f{/Times s selectfont}d/s{11}d/r{roll}d f 2/m{moveto}d -1
r 230 350 m 0 1 179{ 1 index show 88 rotate 4 mul 0 rmoveto}for/s 12
    d f pop 235 420 translate 0 0 moveto 1 2 scale show showpage




reply via email to

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