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

Pauli Virtanen pav at iki.fi
Tue Jul 8 09:09:17 EDT 2014


07.07.2014 21:32, Chris Barker - NOAA Federal kirjoitti:
> If you are going to introduce this functionality, please don't call it
> np.arr.

It might be appropriate for pirate versions of Numpy.

    ***

Seriously though, having a variant of `mat` that returns arrays could be
useful, so weak +0. Preferably, the name should be quite short to type.

On the other hand, unlike r_ and c_, I haven't seen or used mat() in
real code.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list