CuArray and Optim

maximum(abs, x) would work on a CuArray, right?