14 #ifndef MLPACK_CORE_OPTIMIZERS_PROXIMAL_PROXIMAL_HPP 15 #define MLPACK_CORE_OPTIMIZERS_PROXIMAL_PROXIMAL_HPP 20 namespace optimization {
static void ProjectToL0Ball(arma::vec &v, int tau)
Project the vector onto the l0 ball with norm tau.
Approximate a vector with another vector on lp ball.
The core includes that mlpack expects; standard C++ includes and Armadillo.
static void ProjectToL1Ball(arma::vec &v, double tau)
Project the vector onto the l1 ball with norm tau.