Add matrix sums, namespace keys