# pwc_sum¶

static OperationNamespace.pwc_sum(terms, *, name=None)

Creates the sum of multiple piecewise-constant terms.

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

• name (str, optional) – The name of the node.

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

TensorPwc