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

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

[Octave-bug-tracker] [bug #35761] surf() fails when Z values are within


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #35761] surf() fails when Z values are within eps of each other
Date: Thu, 15 Mar 2012 08:28:57 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

Follow-up Comment #5, bug #35761 (project octave):

You are right, in fact the test should be relative


if (std::abs (min_val - max_val) <= sqrt (DBL_EPSILON) * 
    std::max (std::abs (min_val), std::abs (max_val)))


as already mentioned in some FIXME comments. Also notices that I put <=
instead of <, otherwise this test


x = y = ones (3);
z = zeros (3);
surf (x,y,z)


fails.

Marco


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35761>

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




reply via email to

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