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

See also

sparse_pwc_operator()

A function to create time-dependent sparse piecewise-constant operators.

sparse_pwc_sum()

A function to calculate the sum of multiple `SparsePwc`s.