![]() |
SOPT
Sparse OPTimisation
|
#include <proximal.h>
Public Types | |
using | Real = typename L2Ball< T >::Real |
using | t_Vector = Vector< Real > |
![]() | |
using | Real = typename real_type< T >::type |
Public Member Functions | |
template<typename T0 > | |
WeightedL2Ball (Real epsilon, Eigen::DenseBase< T0 > const &w) | |
Constructs an L2 ball proximal of size epsilon with given weights. More... | |
WeightedL2Ball (Real epsilon) | |
Constructs an L2 ball proximal of size epsilon. More... | |
void | operator() (Vector< T > &out, typename real_type< T >::type, Vector< T > const &x) const |
Calls proximal function. More... | |
void | operator() (Vector< T > &out, Vector< T > const &x) const |
Calls proximal function. More... | |
template<typename T0 > | |
EnveloppeExpression< WeightedL2Ball, T0 > | operator() (Real const &, Eigen::MatrixBase< T0 > const &x) const |
Lazy version. More... | |
template<typename T0 > | |
EnveloppeExpression< WeightedL2Ball, T0 > | operator() (Eigen::MatrixBase< T0 > const &x) const |
Lazy version. More... | |
t_Vector const & | weights () const |
Weights associated with each dimension. More... | |
template<typename T0 > | |
WeightedL2Ball< T > & | weights (Eigen::MatrixBase< T0 > const &w) |
Weights associated with each dimension. More... | |
Real | epsilon () const |
Size of the ball. More... | |
WeightedL2Ball< T > & | epsilon (Real const &eps) |
Size of the ball. More... | |
![]() | |
L2Ball (Real epsilon) | |
Constructs an L2 ball proximal of size epsilon. More... | |
void | operator() (Vector< T > &out, typename real_type< T >::type, Vector< T > const &x) const |
Calls proximal function. More... | |
void | operator() (Vector< T > &out, Vector< T > const &x) const |
Calls proximal function. More... | |
template<typename T0 > | |
EnveloppeExpression< L2Ball, T0 > | operator() (Real const &, Eigen::MatrixBase< T0 > const &x) const |
Lazy version. More... | |
template<typename T0 > | |
EnveloppeExpression< L2Ball, T0 > | operator() (Eigen::MatrixBase< T0 > const &x) const |
Lazy version. More... | |
Real | epsilon () const |
Size of the ball. More... | |
L2Ball< T > & | epsilon (Real eps) |
Size of the ball. More... | |
Definition at line 246 of file proximal.h.
using sopt::proximal::WeightedL2Ball< T >::Real = typename L2Ball<T>::Real |
Definition at line 248 of file proximal.h.
using sopt::proximal::WeightedL2Ball< T >::t_Vector = Vector<Real> |
Definition at line 249 of file proximal.h.
|
inline |
Constructs an L2 ball proximal of size epsilon with given weights.
Definition at line 267 of file proximal.h.
|
inline |
Constructs an L2 ball proximal of size epsilon.
Definition at line 269 of file proximal.h.
|
inline |
Size of the ball.
Definition at line 312 of file proximal.h.
References sopt::proximal::L2Ball< T >::epsilon().
Referenced by sopt::proximal::WeightedL2Ball< T >::operator()(), and TEST_CASE().
|
inline |
Size of the ball.
Definition at line 314 of file proximal.h.
References sopt::proximal::L2Ball< T >::epsilon().
|
inline |
|
inline |
|
inline |
Calls proximal function.
Definition at line 273 of file proximal.h.
|
inline |
Calls proximal function.
Definition at line 277 of file proximal.h.
References sopt::proximal::WeightedL2Ball< T >::epsilon(), sopt::proximal::l2_norm(), and sopt::proximal::WeightedL2Ball< T >::weights().
|
inline |
Weights associated with each dimension.
Definition at line 302 of file proximal.h.
Referenced by sopt::proximal::WeightedL2Ball< T >::operator()().
|
inline |
Weights associated with each dimension.
Definition at line 305 of file proximal.h.
References SOPT_THROW.