|
From: | Paul Kienzle |
Subject: | Re: sum() behaving erratically? |
Date: | Wed, 6 Oct 2004 20:30:14 -0400 |
This is a case of bug-for-bug compatibility. - Paul On Oct 6, 2004, at 7:14 PM, address@hidden wrote:
I'm a bit embarrassed to ask this, but here goes: If I let a=[1,2;3,4]; and then ask for sum(a), sum(a,1) and sum(a,2), I get the answers 4 6 4 6 3 7 respectively. Now I let a=[1,2]; and do the same. I now get 3 1 2 3indicating that in the second case sum(a) != sum(a,1), in direct violation of the documentation in the manual. Is this supposed to be like this anddidn't I understand things, or is it a bug? (Octave is 2.1.57.) Kind regards, Maarten
------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |