Compare and contrast with languages with built-in N-dimensional array for scientific computing.
Compare and contrast with languages with built-in N-dimensional array for scientific computing.
I don't think so. The array module was included even in Python 1.0.
Or did you mean to use another verb?
commit 778983b48165da25ee11fb97f6855af7c67f4ff2
Author: Guido van Rossum <guido@python.org>
Date: Fri Feb 19 15:55:02 1993 +0000
Added new module "array" (for now optional) defining array objects. >> size(4)
ans =
1 1
which is 1. wrong and 2. evidence that matlab cannot represent numerical objects of less than rank 2.Numpy can:
>> np.shape(4)
()i think it’s fair to call that a (white) lie
Do you have a link to where this is asserted in the documentation? I'm confused as to the basis for this.
it should be clear that i don’t care very much about what matlab has to represent things as. i don’t mean “matlab integers”, i mean the mathematical objects; matlab’s representation of them is poor.
You have to work within the constraints of the tool. Matlab makes it very clear upfront that the semantics of the language mean that naked numbers are in fact matrices, because everything in the language is a matrix. Maybe you feel that's not a good representation, but it's not a lie, and in fact it's very consistent and useful in the context of the language itself.