Solved by KFrank in post #4 
              
              
                Hi Hdk! 

Yes, I do believe that I misunderstood your goal. 
Am I right that you want each block of what I called the “auxiliary block 
matrix” to be a copy of your matrix y? 
If so, I think that a new feature (as of 1.8?), torch.kron(), might do what 
you need.  Here’s an illustrative script: 
impo…