From dfc0eb386aa52c9fbb26557f40ec83e758ef8246 Mon Sep 17 00:00:00 2001 From: Joseph Salmon Date: Wed, 30 Apr 2025 23:26:26 +0200 Subject: [PATCH] typo in \text{max_nz} in ot.utils.projection_sparse_simplex( --- ot/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ot/utils.py b/ot/utils.py index 1f24fa33f..a56782364 100644 --- a/ot/utils.py +++ b/ot/utils.py @@ -140,7 +140,7 @@ def projection_sparse_simplex(V, max_nz, z=1, axis=None, nx=None): r"""Projection of :math:`\mathbf{V}` onto the simplex with cardinality constraint (maximum number of non-zero elements) and then scaled by `z`. .. math:: - 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 + 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 Parameters ----------