|  | HDIM
    1.0.0
    Packages for High Dimensional Linear Regression | 
Soft Threshold functor used to apply hdim::soft_threshold to each element in a matrix or vector. More...
#include <generics.hpp>
| Public Types | |
| typedef T | result_type | 
| Public Member Functions | |
| SoftThres (T lambda_in) | |
| Initialize proximal operator, note that the term lambda_in takes the place of 'y' in the definition of the proximal operator.  More... | |
| T | operator() (T x) const | 
Soft Threshold functor used to apply hdim::soft_threshold to each element in a matrix or vector.
Designed to be applied with Eigen::Matrix::unaryExpr or the like.
Definition at line 288 of file generics.hpp.
| 
 | inline | 
Initialize proximal operator, note that the term lambda_in takes the place of 'y' in the definition of the proximal operator.
| lambda_in | The equivalent of 'y' in the definition of the proximal operator the value for 'x' will be provided by the matrix element. | 
Definition at line 300 of file generics.hpp.