cr.sparse.lop.inv_heaviside

cr.sparse.lop.inv_heaviside(n, axis=0, normalized=True)[source]

Returns a linear operator that computes the inverse of Heaviside/cumsum on input

Parameters
  • n (int) – Dimension of the model space

  • axis (int) – For multi-dimensional array input, the axis along which the linear operator will be applied

  • normalized (bool) – Indicates if the Heaviside operator was normalized

Returns

An inverse of Heaviside linear operator

Return type

Operator

Recall that Heaviside operate computes the cumulative sum. This operator computes the reverse of cumulative sum which is the difference of consecutive values.