Added support for scaling matrices by a constant and negating matrices