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

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

[Octave-bug-tracker] [bug #48861] interval package: fix exception handli


From: Oliver Heimlich
Subject: [Octave-bug-tracker] [bug #48861] interval package: fix exception handling of constructors
Date: Sun, 11 Sep 2016 22:53:07 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #1, bug #48861 (project octave):

The infsup constructor has been rewritten from scratch with several
improvements.

Next, I will modify the infsupdec constructor to be compatible again (plus
other constructors and intervalpart). The new version of infsup allows for
[NaI] intervals which are not scalar. That is, a decorated interval matrix may
have [NaI] entries together with common interval entries. For example, the new
constructor is already able to do the following:


>> infsup ("happy 42 hacking")
warning: Invalid call to parsedouble
warning: called from
    infsup at line 733 column 13
warning: Invalid call to parsedouble
warning: Invalid call to parsedouble
warning: Invalid call to parsedouble
ans = 1×3 interval vector

   [Empty]   [42]   [Empty]



Checking IEEE Std 1788-2015, there is no need to suppress warnings when
calling infsup from infsupdec.

As a third step, all bare interval functions have to be revised to not produce
warnings by calling infsup (l, u) with l = +inf, u = -inf. Therefore it should
be possible to use warning ("off", "interval:UndefinedOperation", "local").

As a forth step, all decorated interval functions have to be revised to
correctly handle [NaI] intervals if they are allowed in interval matrices.

As soon as this refactoring is done and unit tests are passing again, I will
push my changes to the repository and prepare a new major release (version
2.0.0) due to the subtle incompatibility changes.

(file #38479)
    _______________________________________________________

Additional Item Attachment:

File name: infsup.m                       Size:45 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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