# constant_sparse_pwc_operator¶

static OperationNamespace.constant_sparse_pwc_operator(duration, operator)

Creates a constant sparse piecewise-constant operator over a specified duration.

Parameters
• duration (float) – The duration $$\tau$$ for the resulting piecewise-constant operator.

• operator (scipy.sparse.coo_matrix) – The sparse operator $$A$$.

Returns

The constant operator $$t\mapsto A$$ (for $$0\leq t\leq\tau$$).

Return type

SparsePwc

sparse_pwc_operator()
sparse_pwc_sum()
A function to calculate the sum of multiple SparsePwcs.