# NOT RUN {
x <- rray(c(1:10, 20:11), dim = c(5, 2, 2))
# Flatten x, then find the position of the max value
rray_min_pos(x)
# Compute along the rows
rray_min_pos(x, 1)
# Compute along the columns
rray_min_pos(x, 2)
# }
Run the code above in your browser using DataLab