[Top][All Lists]

[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):


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:


  Message sent via Savannah

reply via email to

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