Replace arrayT ~= rowT; with arrayT ~= rowT.dup; Also, you may want to look into ndslice package [1]. [1] https://github.com/libmir/mir-algorithmBest regards, Ilya Yaroshenko
Works! Thanks Ilya. I'll take a look on the difference. Also soon will get bit familiar with the mir-algorithm...
Best, Torsten