convert all computations to armadillo