I'm floating this thought even though it is not fleshed out.
On occasion, I run into the following problem:
I have a rectangular array A to which I want to append
a (probably) one dimensional vector b to make [A|b].
Of course this can be done as np.hstack((x,b[:,None]))
(or obscurely
On Thu, Jul 18, 2013 at 5:57 PM, Alan G Isaac alan.is...@gmail.com wrote:
I'm floating this thought even though it is not fleshed out.
On occasion, I run into the following problem:
I have a rectangular array A to which I want to append
a (probably) one dimensional vector b to make [A|b].
On 7/18/2013 1:03 PM, Robert Kern wrote:
np.column_stack([x, b]) does everything you need.
So it does.
It's not referenced from the hstack or concatenate documentation.
Thanks!
Alan
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
On Thu, Jul 18, 2013 at 7:06 PM, Alan G Isaac alan.is...@gmail.com wrote:
On 7/18/2013 1:03 PM, Robert Kern wrote:
np.column_stack([x, b]) does everything you need.
So it does.
It's not referenced from the hstack or concatenate documentation.
A pull request would fix all of that in seconds!
Forgive my ignorance, but has numpy and scipy stopped doing that weird doc
editing thing that existed back in the days of Trac? I have actually held
back on submitting doc edits because I hated using that thing so much.
___
NumPy-Discussion mailing list
Hi Ben
On Thu, Jul 18, 2013 at 7:18 PM, Benjamin Root ben.r...@ou.edu wrote:
Forgive my ignorance, but has numpy and scipy stopped doing that weird doc
editing thing that existed back in the days of Trac? I have actually held
back on submitting doc edits because I hated using that thing so
On 7/18/2013 1:03 PM, Robert Kern wrote:
np.column_stack([x, b]) does everything you need.
I am curious: why is column_stack in numpy/lib/shape_base.py
while hstack and vstack are in numpy/core/shape_base.py ?
Thanks,
Alan
___
NumPy-Discussion
18.07.2013 20:18, Benjamin Root kirjoitti:
Forgive my ignorance, but has numpy and scipy stopped doing that weird
doc editing thing that existed back in the days of Trac? I have actually
held back on submitting doc edits because I hated using that thing so much.
You were never required to use
Well, that's nice to know now. However, I distinctly remember being told
that any changes made to the docstrings directly in the source would end up
getting replaced by whatever was in the doc edit system whenever a merge
from it happens. Therefore, if one wanted their edits to be persistent,
they
18.07.2013 21:11, Benjamin Root kirjoitti:
Well, that's nice to know now. However, I distinctly remember being told
that any changes made to the docstrings directly in the source would end
up getting replaced by whatever was in the doc edit system whenever a
merge from it happens. Therefore,
10 matches
Mail list logo