octave-patch-tracker
[Top][All Lists]
Advanced

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

[Octave-patch-tracker] [patch #8119] Allow variable tolerance and improv


From: Rik
Subject: [Octave-patch-tracker] [patch #8119] Allow variable tolerance and improve error messages for assert.m script
Date: Fri, 02 Aug 2013 18:00:07 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

Follow-up Comment #5, patch #8119 (project octave):

What about using the 'plus' format for the differences matrix?


x = [1 2; 3 4]; y = [1 3; 2 4];
tol = 0.1;
result = x - y;
bad_idx = abs (result) > tol;
format plus "** ";
disp (bad_idx);
format short;


I like the idea of displaying the indices of the mismatches.  I think it might
be even better if we moved from a vertical to a horizontal format.  Right now,
it is 


Expected:
...
...
...
Got
...
...
...
Tolerance exceeded by 
...
...
...


But, I think this would be better.


Location  |  Expected      |     Got     |  Reason
[1,2]           2                 3         Exceeds absolute tolerance 0


We should use shorter names, but this is the idea.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8119>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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