bounded_difference
Return the bounded difference of the input. The bounded difference of two real scalars x and y is: max (0, x + y - 1)
For one vector argument, apply the bounded difference to all of the elements of the vector. (The bounded difference is associative.) For one two-dimensional matrix argument, return a vector of the bounded difference of each column.
For two vectors or matrices of identical dimensions, or for one scalar and one vector or matrix argument, return the pairwise bounded difference.
See also: algebraic_product, algebraic_sum, bounded_sum, drastic_product, drastic_sum, einstein_product, einstein_sum, hamacher_product, hamacher_sum