This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Terminal color definitions | |
| class fg: | |
| BLACK = '\033[30m' | |
| RED = '\033[31m' | |
| GREEN = '\033[32m' | |
| YELLOW = '\033[33m' | |
| BLUE = '\033[34m' | |
| MAGENTA = '\033[35m' | |
| CYAN = '\033[36m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ Module to compute projections on the positive simplex or the L1-ball | |
| A positive simplex is a set X = { \mathbf{x} | \sum_i x_i = s, x_i \geq 0 } | |
| The (unit) L1-ball is the set X = { \mathbf{x} | || x ||_1 \leq 1 } | |
| Adrien Gaidon - INRIA - 2011 | |
| """ | |
NewerOlder