[math-fun] sum-product matrices