Apr 12, 2024
A scalar isn't a 1 x 1 matrix. They are different things.
They behave in a similar way in some circumstances, for example add/subtract/multiply/divide work in a similar way for two scalars or for two 1 x 1 matrices. But there are also situations where they do not behave in the same way, including your example.