Multiply matrix by scalar (#670)