octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs
Date: Wed, 1 Mar 2023 13:27:24 -0500 (EST)

Follow-up Comment #17, bug #61690 (project octave):

patch still applies cleanly.  can we add self tests to this to verify that it
gets sum to behave appropriately for empty inputs and prevent future
rejections?

the code does appear to follow the current behavior of sum and many other
functions where all input functions, including empties, have outputs with the
operating dimension changed to size=1, _except_ for 0x0 inputs. those output
as 1x1. effectively, it changes dim1 to 1 then operates on default first
non-singleton dim 2 (changing the 1x0 input -> 1x1 output).  

@sarrah, can you comment on how this does or doesn't relate to bug #51333? 
sum is mentioned there, and you have a patch sitting there for dot.  is this
report just duplicative of one of the bugs mentioned there?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61690>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]