import numpy as num
It would be nice if I could do:
import numpy.matrix as num
And basically have access to all the same stuff that's in the base numpy but have everything set up in a matrix-like way, so num.ones returns a matrix instead of an array, etc. (I don't care so much about the particular name... matlib, matrixlib, matrixdefault, or whatever -- I just care about the functionality)
The way I understand this matlib module is that I would do something along the lines of one of these:
1) import numpy as num
from numpy.matlib import ones, zeros,...
or
2) import numpy as num
import numpy.matlib as M
Either way, the matrix functions aren't in the same namespace as general numpy functions, which makes it feel like something of a bolt-on rather than a second equally valid way to use numpy. So what I'd like is
3) import numpy.matlib as num
I think the way to get 3) may be to just do a "from numpy import *" at the beginning of the numpy.matlib module, before redefining particular functions with matrix versions. Maybe that's a bad idea, though?
Or maybe this is the way Travis and others planned for it to work from the beginning? At any rate, versions 1) and 2) should also be supported for the times you don't want to use matlib as the default, but still want access to it.
--bill
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion