# sparse_pwc_sum¶

static OperationNamespace.sparse_pwc_sum(terms)

Creates the sum of multiple sparse-matrix-valued piecewise-constant functions.

Parameters

terms (list[SparsePwc]) – The individual piecewise-constant terms $$\{v_j(t)\}$$ to sum. All terms must be sparse, have values of the same shape, and have the same total duration but may have different numbers of segments of different durations.

Returns

The piecewise-constant function of time $$\sum_j v_j(t)$$. It has the same shape as each of the terms that you provided.

Return type

SparsePwc