add a matrix scaling operator
fix annoying gcc warnings about how it works fine but wants to complain