[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs
From: |
Sarrah Bastawala |
Subject: |
[Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs |
Date: |
Mon, 4 Apr 2022 13:31:45 -0400 (EDT) |
Follow-up Comment #1, bug #61690 (project octave):
Hello, I am working on resolving this bug and would like it to be assigned to
me. I saw that while
sum([],1)
behaves differently on Octave and Matlab,
sum([],2)
gives,
ans =
0×1 empty double column vector
on Matlab, and
ans = [](0x1)
on Octave, which are similar enough. And by playing with how we set default
dimensions when we encounter an empty matrix in
liboctave/operators/mx-inlines.cc, I believe the bug can be resolved to give a
similar output for dim = 1 as well.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61690>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs,
Sarrah Bastawala <=
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Nicholas Jankowski, 2022/04/04
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Sarrah Bastawala, 2022/04/04
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Sarrah Bastawala, 2022/04/04
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Nicholas Jankowski, 2022/04/04
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Nicholas Jankowski, 2022/04/04
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, John W. Eaton, 2022/04/05
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Sarrah Bastawala, 2022/04/05
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Nicholas Jankowski, 2022/04/05
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Sarrah Bastawala, 2022/04/05
- [Octave-bug-tracker] [bug #61690] Behavior of sum() with empty inputs, Nicholas Jankowski, 2022/04/05