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

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

[Octave-bug-tracker] [bug #50359] isnull false negative


From: Ernst Reissner
Subject: [Octave-bug-tracker] [bug #50359] isnull false negative
Date: Mon, 20 Feb 2017 05:12:38 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0

URL:
  <http://savannah.gnu.org/bugs/?50359>

                 Summary: isnull false negative
                 Project: GNU Octave
            Submitted by: ernstreissner
            Submitted on: Mon 20 Feb 2017 10:12:37 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Ernst Reissner
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0
        Operating System: Any

    _______________________________________________________

Details:


In the documentation, Section 4.3 something strange is written on isnull 
A(I) = [] This should delete elements if I is nonempty.
X = []; A(I) = X
This should give an error if I is nonempty.

This cannot be. 

Also I had a look: 
    b=javaArray("java.math.BigDecimal",3)
    b(3)=javaObject("java.math.BigDecimal",3.0)

isnull(b(2))  % yields ans = 0 
isempty(b(2)) % yields ans = 1

The first is not correct. 





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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