[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53765] reverse cumulative sum
From: |
Michael Leitner |
Subject: |
[Octave-bug-tracker] [bug #53765] reverse cumulative sum |
Date: |
Fri, 27 Apr 2018 11:01:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #1, bug #53765 (project octave):
Workaround:
r = cumsum(dat(end:-1:1))(end:-1:1)
Unfortunately cumsum is not a .m-file, otherwise this option could be very
easily added. Of course, it would be more efficient to do this natively.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53765>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/