for some formal calculations, I temporarily disabled the Listable Attributes of Plus and Times.
This works very well, however I fail to understand the following output? I would expect the output to be 3*{a, b} + {a, b}, again. What am I missing?
Patching builtins sometimes works, but it’s inviting unexpected behavior. If you’re trying to mix symbols with explicit arrays, it’s probably better to wrap the arrays in a function that prevents Listable from operating. The actual wrapper doesn’t matter as long as it’s passive, but MatrixForm is convenient, and makes pretty output, too. Try this: