Page 1 of 1
sum of series of arrays
Posted: Tue Apr 06, 2021 3:01 pm
by tclark
I have time series of matrices (e.g., ser[symm] and ser[rec]) for which I take the sum. I currently use a do loop over time to compute the sums needed. Is there a command or function available to do this (compute the sums of the the time series of matrices) faster? Thanks much.
Re: sum of series of arrays
Posted: Tue Apr 06, 2021 3:09 pm
by TomDoan
I'm not sure whether you're summing over time, element by element, or summing over the elements at a given time period.
Re: sum of series of arrays
Posted: Tue Apr 06, 2021 5:56 pm
by tclark
I need to take the sum over time of the time series of the matrices in question, to get a matrix of the same shape.
Re: sum of series of arrays
Posted: Wed Apr 07, 2021 9:16 am
by TomDoan
You can loop over the dimensions and use SSTATS to compute the sum over time, but that's probably no quicker.
Re: sum of series of arrays
Posted: Wed Apr 07, 2021 9:19 am
by tclark
Ok, thanks