[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46328] validateattributes: missing "diag" att
From: |
Amro |
Subject: |
[Octave-bug-tracker] [bug #46328] validateattributes: missing "diag" attribute |
Date: |
Thu, 29 Oct 2015 22:48:46 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 |
URL:
<http://savannah.gnu.org/bugs/?46328>
Summary: validateattributes: missing "diag" attribute
Project: GNU Octave
Submitted by: amro_octave
Submitted on: Fri 30 Oct 2015 12:48:44 AM EET
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: Any
_______________________________________________________
Details:
Example:
>> validateattributes(eye(5), {'numeric'}, {'size',[5 5], 'diag'})
error: validateattributes: unknown ATTRIBUTE diag
error: called from
validateattributes at line 321 column 9
It should be easy to fix, using ISDAIG function to perform the test.
Also there's a typo in the documentation, where it mentions "non-negative"
attribute but its name should be "nonnegative" to match MATLAB.
% this will error
% validateattributes(1:3, {'numeric'}, {'non-negative'})
% this works
validateattributes(1:3, {'numeric'}, {'nonnegative'})
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46328>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46328] validateattributes: missing "diag" attribute,
Amro <=