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