Add boilerplate for matrix sums/products.