powered by
These functions compute the parallel minimum/ maximum of two vector-valued inputs and are compatible with automatic differentiation using RTMB.
RTMB
min2(x, y)max2(x, y)
max2(x, y)
min2 returns the parallel minimum and max2 the parallel maximum of x and y
min2
max2
x
y
first vector
second vector
x <- c(1, 4, 8, 2) y <- c(2, 5, 3, 7) min2(x, y) max2(x, y)
Run the code above in your browser using DataLab