return to top
source
Definition 1.27: For a vector x in ℝ^n, modeled as Fin n → ℝ, sgn x is the coordinatewise sign vector whose i-th entry is 1 when x i ≥ 0 and -1 when x i < 0.
x
ℝ^n
Fin n → ℝ
sgn x
i
1
x i ≥ 0
-1
x i < 0
The coordinates of sgn x are 1 on nonnegative entries of x and -1 on negative ones.