[Numpy-discussion] Matlab -> NumPy translation and indexing
Wed Mar 14 08:43:18 CDT 2007
so one thing I came across now is the following, very simple:
A = 
A = [A some_scalar_value]
In Python, I tried:
A = empty((0,0))
A = concatenate((A, array([someScalarValue])), 1)
which returns an error since the shape of the empty A does not match the
vector I want to concatenate with. Any way to get around this without having
to use some obscure "if exist A" clause. I am still stuck in my Matlab ways
- hoping to get rid of them though.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion