dim
Calculates the positive difference between x and y, that is, if x>y, returns x-y, otherwise returns 0. Depending on input, function can return scalar, vector or matrix
Arguments
- Real value x
- Real value y
Output
Max (x-y, 0)
Examples
Calculates the positive difference between x and y, that is, if x>y, returns x-y, otherwise returns 0. Depending on input, function can return scalar, vector or matrix
Max (x-y, 0)