[Numpy-discussion] Short-hand array creation in `numpy.mat` style

Daπid davidmenhur at gmail.com
Sat Jul 12 17:32:24 EDT 2014


On 11 July 2014 22:30, Daniel da Silva <var.mail.daniel at gmail.com> wrote:

> I think the idea at hand is not that it would be used everyday, but it
> would be there when needed. What people do everyday is with *real* data.
> They are using functions to load the data.
>

But sometimes we have to hard-code a few values, and it is true that making
a list (or nested list) is quite verbose; one example are unittests. Having
a MATLAB-style array creation would be convenient for those cases.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140712/d318ff49/attachment.html>


More information about the NumPy-Discussion mailing list