3 ms·
I would argue that an array is something else than a matrix. It's a design decision that matlab (and julia) made, regard every multi-element variable as a matri
by cycomanic 5y ago
I would argue that an array is something else than a matrix. It's a design decision that matlab (and julia) made, regard every multi-element variable as a matrix. I disagree with that decision, because for most of the code I'm exposed to I don't want matrix operations and it causes issues, e.g. when I move from a scalar implementation to an array implementation of a function.
- eigenspace 5y agoAh sure, yes we did not need to conflate vectors and matrices with arrays and I sometimes wonder if we made the wrong choice there. I guess I'd say that then someone would get to own the syntax [a, b, c] it'd either be a vector of a non-mathematical array and whichever choice was made, someone would be unhappy. I think not too much was lost by having them be the same thing, but the ship has sailed anyways.