sparse_pwc_operator

static OperationNamespace.sparse_pwc_operator(signal, operator)

Creates a sparse piecewise-constant operator (sparse-matrix-valued function of time).

Each of the piecewise-constant segments (time periods) is a scalar multiple of the operator.

Parameters
  • signal (TensorPwc) – The scalar-valued piecewise-constant function of time \(a(t)\).

  • operator (scipy.sparse.coo_matrix) – The sparse operator \(A\) to be scaled over time.

Returns

The piecewise-constant sparse operator \(a(t)A\).

Return type

SparsePwc

See also

constant_sparse_pwc_operator()

A function to create constant `SparsePwc`s.

sparse_pwc_sum()

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