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

Sebastian Berg sebastian at sipsolutions.net
Mon Jul 7 09:11:47 EDT 2014


On Mo, 2014-07-07 at 08:25 -0400, Alan G Isaac wrote:
> On 7/7/2014 7:17 AM, Daπid wrote:
> > How about a new one? np.matarray, for MATLAB array.
> 
> 
> How about `str2arr` or even `build`, since teaching appears to be a focus.
> Also, I agree '1 2 3' shd become 1d and '1 2 3;' shd become 2d.
> It seems unambiguous to allow '1 2 3;;' to be 3d, or even
> '1 2;3 4;;5 6;7 8' (two 2d arrays), but I'm just noting
> that, not urging that it be implemented.
> 

Probably overdoing it, but if we plan on more then just this, what about
banning such functions to something like numpy.interactive/numpy.helpers
which you can then import * (or better specific functions) from?

I think the fact that you need many imports on startup should rather be
fixed by an ipython scientific mode or other startup imports.

- Sebastian

> Alan Isaac
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140707/a358f6c8/attachment.sig>


More information about the NumPy-Discussion mailing list