moscot.base.output.MatrixSolverOutput.as_linear_operator#

MatrixSolverOutput.as_linear_operator(scale_by_marginals=False)#

Transform transport_matrix into a linear operator.

Parameters:

scale_by_marginals (bool) – Whether to scale by marginals.

Return type:

LinearOperator

Returns:

: The transport_matrix as a linear operator.