sum_over_subset: For each array in a list, sum over dimension d
.
Description
For each array in a list, sum over dimension d
.
Usage
sum_over_subset(lst, subset, d = 3)
Arguments
lst
List containing 3-dimensional arrays. The second dimension should
represent locations, and the third dimension should represent data
streams.
subset
An integer vector holding a subset of indices.
d
An integer; the array dimension to sum over.
Value
A list containing matrices. This list has the same names as the input
list.