[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45487] isa function not working when checking
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #45487] isa function not working when checking for multiple classes |
Date: |
Tue, 07 Jul 2015 20:06:44 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:38.0) Gecko/20100101 Firefox/38.0 |
URL:
<http://savannah.gnu.org/bugs/?45487>
Summary: isa function not working when checking for multiple
classes
Project: GNU Octave
Submitted by: None
Submitted on: Tue 07 Jul 2015 08:06:43 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: giangi
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.2
Operating System: Any
_______________________________________________________
Details:
Hi here is the description for the isa function
Function File: isa (obj, classname)
...
...
If classname is a cell array of string, a logical array of the same size is
returned, containing true for each class to which obj belongs to.
Here is an experiment
>> isa(rand(10),{'numeric','logical'})
ans =
0 0
>> isa(rand(10),{'numeric'})
ans = 1
which is incompatible (but correct) with the above result.
This is used in the validateattributes.m and was giving me the wrong result
(that means that the bug is propagated to the above function) and that's how i
found out.
Cheers
giangi
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45487>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45487] isa function not working when checking for multiple classes,
anonymous <=