Skip to content
Back to formatted view

Raw Message

Message-ID: <loom.20111126T171456-531@post.gmane.org>
Date: 2011-11-26T16:15:24Z
From: Ben Bolker
Subject: cumsum in 3d arrays

zloncaric <zloncaric <at> biologija.unios.hr> writes:

> Is it posible to apply /cumsum()/ along the 3rd dimension of 3D array? 
> Something like matrlab function - /cumsum (*A*,dim)/ which returns the
> cumulative sum of the elements along the dimension of *A* specified by
> scalar dim.

  Check out the combination of apply and cumsum.