petsc-3.12.5 2020-03-29
Report Typos and Errors

TaoSoftThreshold

Calculates soft thresholding routine with input vector and given lower and upper bound and returns it to output vector.

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoSoftThreshold(Vec in, PetscReal lb, PetscReal ub, Vec out)

Input Parameters

Output Parameters

Notes

Soft thresholding is defined as \[ S(input,lb,ub) = \begin{cases} input - ub \text{input > ub} \\ 0 \text{lb =< input <= ub} \\ input + lb \text{input < lb} \\ \]

Level

developer

Location

src/tao/util/tao_util.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages
in - input vector to be thresholded
lb - lower bound
ub - upper bound
out - Soft thresholded output vector