I already solved my problem, but I don't want to continue since it's off topic. Mateusz On 12 October 2012 01:17, Davor Cubranic <cubranic at stat.ubc.ca> wrote: > According to Armadillo docs, submat's arguments are two uvec's, not a uvec > and an int. > > Davor