Skip to content

Commit dfc0eb3

Browse files
authored
typo in \text{max_nz} in ot.utils.projection_sparse_simplex(
1 parent 61e9af4 commit dfc0eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ot/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def projection_sparse_simplex(V, max_nz, z=1, axis=None, nx=None):
140140
r"""Projection of :math:`\mathbf{V}` onto the simplex with cardinality constraint (maximum number of non-zero elements) and then scaled by `z`.
141141
142142
.. math::
143-
P\left(\mathbf{V}, max_nz, z\right) = \mathop{\arg \min}_{\substack{\mathbf{y} >= 0 \\ \sum_i \mathbf{y}_i = z} \\ ||p||_0 \le \text{max_nz}} \quad \|\mathbf{y} - \mathbf{V}\|^2
143+
P\left(\mathbf{V}, \text{max_nz}, z\right) = \mathop{\arg \min}_{\substack{\mathbf{y} >= 0 \\ \sum_i \mathbf{y}_i = z} \\ ||p||_0 \le \text{max_nz}} \quad \|\mathbf{y} - \mathbf{V}\|^2
144144
145145
Parameters
146146
----------

0 commit comments

Comments
 (0)