Just add the (((MARK))), and preventing adding None informations. Finally, nump.array will win, with a Array.diagonal().sum() can acheive a fast 1-dimension size analysis, an Array sum minus tge swapped-axes and diagonal summation give the other 1-dimensional size analisys... like Array.sum() - Array.swapaxes(1,1).diagonal().sum()