moscot.base.output.MatrixSolverOutput.push#

MatrixSolverOutput.push(x, scale_by_marginals=False)#

Push mass through the transport_matrix.

It is equivalent to \(T^T x\) but without instantiating the transport matrix \(T\), if possible.

Parameters:
  • x (ndarray[Any, dtype[float64]]) – Array of shape [n,] or [n, d] to push.

  • scale_by_marginals (bool) – Whether to scale by the source marginals a.

Return type:

ndarray[Any, dtype[float64]]

Returns:

: Array of shape [m,] or [m, d], depending on the shape of x.