Go to the source code of this file.
|
int | main (int, char const **) |
|
◆ main()
int main |
( |
int |
, |
|
|
char const ** |
|
|
) |
| |
Definition at line 4 of file soft_threshhold.cc.
6 input << 1e1, 2e1, 3e1, 4e1, 1e4, 2e4;
std::enable_if< std::is_arithmetic< SCALAR >::value or is_complex< SCALAR >::value, SCALAR >::type soft_threshhold(SCALAR const &x, typename real_type< SCALAR >::type const &threshhold)
abs(x) < threshhold ? 0: x - sgn(x) * threshhold
Eigen::Array< T, Eigen::Dynamic, 1 > Array
A 1-dimensional list of elements of given type.
References sopt::soft_threshhold().