With your help I investigate in the right direction. The problem is solved when I use contiguous() on the net result. I need to understand more the methods that modifies the memory and the others that is just a “view” of it.
Thanks