[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37756] powerset: typo on error message and do
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #37756] powerset: typo on error message and doesn't return cell array when set is empty [with patch] |
Date: |
Thu, 15 Nov 2012 23:08:26 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20100101 Firefox/10.0.10 Iceweasel/10.0.10 |
URL:
<http://savannah.gnu.org/bugs/?37756>
Summary: powerset: typo on error message and doesn't return
cell array when set is empty [with patch]
Project: GNU Octave
Submitted by: carandraug
Submitted on: Thu 15 Nov 2012 11:08:24 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
powerset should always returns a cell array but returns an empty matrix if the
input set is empty.
octave:1> powerset([])
ans = [](0x0)
Also, the error message for checking the second argument is the word "rows" is
also incorrect, and mentions "third" argument.
My patch fixes this two things, furthers the documentation (which at the
moment is a single line without explanation of the rows option), adds 2 more
tests (one for empty set and another for the use of the rows option) and one
more input check that cell arrays can only be used with cell array of
strings.
Please pull changeset 9671baab36c4 from
https://bitbucket.org/carandraug/octave/
Carnë
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37756>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37756] powerset: typo on error message and doesn't return cell array when set is empty [with patch],
Carnë Draug <=