Multiply matrices by scalars