Hi @Eta_C ,
I was thinking to view it as a 3D tensor maybe and iterate through each (5, 5) sub tensors with for loop.
But that way would be extremely slow as I mentioned. 



 Eta_C:

30 values could be viewed as (5, 6


I corrected the mistake 
Thanks.