[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49478] Document, that "size" combines dimensi
From: |
Andreas Weber |
Subject: |
[Octave-bug-tracker] [bug #49478] Document, that "size" combines dimensions if nargout>1 && nargout<ndims(A) |
Date: |
Sun, 30 Oct 2016 09:47:05 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<http://savannah.gnu.org/bugs/?49478>
Summary: Document, that "size" combines dimensions if
nargout>1 && nargout<ndims(A)
Project: GNU Octave
Submitted by: andy1978
Submitted on: Sun 30 Oct 2016 09:47:02 AM GMT
Category: Documentation
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.0-rc2
Operating System: Any
_______________________________________________________
Details:
I was baffled that size returns the produkt of dimensions if nargout > 1 and
nargout < ndims (A)
(and yes, the other software does the same)
For example:
[d1, d2] = size (ones (2, 3, 4))
d1 = 2
d2 = 12
[d1, d2, d3] = size (ones (2, 3, 4, 5, 6))
d1 = 2
d2 = 3
d3 = 120
I think this should be documented in "size", something like "If there are
multiple output arguments, but less than ndims (A), the last output argument
is the product of the remaining dimensions"
Perhaps someone with better english skills can add this.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49478>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49478] Document, that "size" combines dimensions if nargout>1 && nargout<ndims(A),
Andreas Weber <=