I\'m guessing about the way to conditionally minimize the 4D matrix. For simplicity, let\'s propose that we have a random 4D matrix:
t,p = 10,11 N,k = 7,8 tes