,:], numpy.empty([1,state,1]))
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
way to build Cython files than this weird
monkey-patching thing they propose? (It's still better than the horror
that setuptools/distribute require, but I guess I have higher
expectations...)
Sadly, probably not. numpy.distutils is not much less horrifying than
setuptools.
--
Robert Kern
to
specific compiler versions.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
.
The trail leads to here:
http://projects.scipy.org/numpy/attachment/ticket/36/numpy-6-norm-change-
default.diff
Seems like the chances of learning the reason why this change was done
are pretty slim.
http://mail.scipy.org/pipermail/numpy-discussion/2006-March/019194.html
--
Robert Kern
it make sense if pylab.power were the frequently used power
function rather than a means for sampling from the power distribution?
Matplotlib may be discussed over here:
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Robert Kern
it
gets installed. Then the numpy-1.6.2-py2.7-python.org-macosx10.3.dmg
will recognize it.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
of the masked values will be trip these errors
spuriously even though they will be masked out in the result.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
the error setting.
Precisely.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
is to let
the ndarray.fill() method return self:
a = np.empty(...).fill(20.0)
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Mon, Jan 14, 2013 at 1:04 AM, Nathaniel Smith n...@pobox.com wrote:
On Sun, Jan 13, 2013 at 11:48 PM, Skipper Seabold jsseab...@gmail.com wrote:
On Sun, Jan 13, 2013 at 6:39 PM, Nathaniel Smith n...@pobox.com wrote:
On Sun, Jan 13, 2013 at 11:24 PM, Robert Kern robert.k...@gmail.com
wrote
of the multiplication will be different, so fill can not be used.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
/user/basics.indexing.html#indexing-multi-dimensional-arrays
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
, 12],
[ 7, 23],
[ 6, 11],
[ 8, 9]])
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
and last row.
all_equal_mask = np.logical_and.reduce(arr[:,1:] == arr[:,:-1], axis=1)
some_unequal = arr[~all_equal_mask]
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
= np.linalg.solve(v, y0)
for i, t in enumerate(tlist):
# And no need to dot() the first part. Broadcasting works just fine.
sol_t = (v * np.exp(-w*t)).dot(viy0)
...
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http
in.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
link on the left. Follow the instructions on
the front page of the numpy Docstring Editor site to sign up:
http://docs.scipy.org/numpy/Front%20Page/
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org
with PyPI on Catalog-SIG:
http://mail.python.org/mailman/listinfo/catalog-sig
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
-discussion is for both development discussions and support
questions. The set of people interested in the developer discussions
is mostly the same as the set of people giving support, so there has
never been too much impetus for breaking the list into two halves.
--
Robert Kern
expecting? A single row? savetxt() always writes out
len(arr) rows. Reshape your vector into a (1,N) array if you want a
single row.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy
://sourceforge.net/projects/numpy/files/
Is there some misleading documentation still around that gave
you a different impression?
Todd is responding to a message about PyDSTool, which is developed on
Sourceforge, not numpy.
--
Robert Kern
___
NumPy-Discussion
a.abs(), and why this function and
not other unary functions?
Or even abs(a).
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Tue, Feb 26, 2013 at 12:11 AM, Charles R Harris
charlesr.har...@gmail.com wrote:
On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern robert.k...@gmail.com wrote:
On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote:
On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t
] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
Anyone who was expecting the interactive setup will probably complain here.
--
Robert Kern
On Wed, Mar 6, 2013 at 10:45 PM, Nathaniel Smith n...@pobox.com wrote:
On Wed, Mar 6, 2013 at 10:33 PM, Robert Kern robert.k...@gmail.com wrote:
On Wed, Mar 6, 2013 at 8:09 PM, Nathaniel Smith n...@pobox.com wrote:
A number of items on the 1.8 todo list are reminders to remove things
that we
On Wed, Mar 6, 2013 at 10:56 PM, Nathaniel Smith n...@pobox.com wrote:
On Wed, Mar 6, 2013 at 10:53 PM, Robert Kern robert.k...@gmail.com wrote:
On Wed, Mar 6, 2013 at 10:45 PM, Nathaniel Smith n...@pobox.com wrote:
On Wed, Mar 6, 2013 at 10:33 PM, Robert Kern robert.k...@gmail.com wrote
exposed `set_state()` in the module API. It's an attractive nuisance.
There is some low-level C work that needs to be done to allow the
non-uniform distributions to be shared between implementations of the
core uniform PRNG, but that's the same no matter how you organize the
upper layer.
--
Robert
On Tue, Mar 12, 2013 at 10:38 PM, Neal Becker ndbeck...@gmail.com wrote:
Nathaniel Smith wrote:
On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith n...@pobox.com wrote:
On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern robert.k...@gmail.com wrote:
On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam s
.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Wed, Mar 13, 2013 at 7:20 PM, Neal Becker ndbeck...@gmail.com wrote:
Robert Kern wrote:
On Wed, Mar 13, 2013 at 6:40 PM, Neal Becker ndbeck...@gmail.com wrote:
Grabbed numpy-1.7.0 source.
Cython is 0.18
cython mtrand.pyx produces lots of errors.
It helps to copy-and-paste the errors
into a struct and
export a pointer to it via a PyCapsule.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Thu, Mar 14, 2013 at 11:00 AM, Neal Becker ndbeck...@gmail.com wrote:
Robert Kern wrote:
On Wed, Mar 13, 2013 at 12:16 AM, Neal Becker ndbeck...@gmail.com wrote:
I guess I talked to you about 100 years ago about sharing state between
numpy
rng and code I have in c++ that wraps boost
to be used in the code snippet that Dmitrey showed.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Sat, Mar 16, 2013 at 6:19 PM, Dmitrey tm...@ukr.net wrote:
--- Исходное сообщение ---
От кого: Robert Kern robert.k...@gmail.com
Дата: 16 марта 2013, 19:54:51
On Sat, Mar 16, 2013 at 10:39 AM, Matthieu Brucher
matthieu.bruc...@gmail.com wrote:
Even if they have different hashes
On Tue, Apr 9, 2013 at 4:15 PM, Dmitrey tm...@ukr.net wrote:
--- Исходное сообщение ---
От кого: Robert Kern robert.k...@gmail.com
Дата: 16 марта 2013, 22:15:07
On Sat, Mar 16, 2013 at 6:19 PM, Dmitrey tm...@ukr.net wrote:
--- Исходное сообщение ---
От кого: Robert Kern robert.k
On Wed, Apr 10, 2013 at 12:30 PM, Dmitrey tm...@ukr.net wrote:
--- Исходное сообщение ---
От кого: Robert Kern robert.k...@gmail.com
Дата: 9 апреля 2013, 14:29:43
Well, it's your software. You are free to make it as buggy as you wish, I
guess.
Yes, and that's why each time I get
On Wed, Apr 10, 2013 at 1:06 PM, Nathaniel Smith n...@pobox.com wrote:
This kind of personal attack is never appropriate for this list. Please
stop.
My apologies. I will stop.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion
won't get good answers here.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
ecosystem questions here as a starting point, one must
expect to be pointed to better resources when they exist and to follow
up there.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo
-bit platform, but those are
usually indicative of bugs to be fixed.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
, not
for scalars. np.save() uses an np.asanyarray() to coerce its input
which is why your scalar gets converted to a rank-zero array.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy
/numpy/lib/format.py
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
should start using more full-fledged and
standard file formats.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
, though. :-)
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
...
but maybe I just need to give it a shot and see how it works.
The rationale behind .npy format are laid out here:
https://github.com/numpy/numpy/blob/master/doc/neps/npy-format.txt
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
On Thu, Apr 25, 2013 at 6:30 PM, Matthew Brett matthew.br...@gmail.com wrote:
Hi,
On Thu, Apr 25, 2013 at 10:14 AM, Robert Kern robert.k...@gmail.com wrote:
On Wed, Apr 24, 2013 at 10:37 PM, andrew giessel
andrew.gies...@gmail.com wrote:
Hello all-
A while back I emailed the list about
On Thu, Apr 25, 2013 at 6:54 PM, Matthew Brett matthew.br...@gmail.com wrote:
Hi,
On Thu, Apr 25, 2013 at 10:42 AM, Robert Kern robert.k...@gmail.com wrote:
On Thu, Apr 25, 2013 at 6:30 PM, Matthew Brett matthew.br...@gmail.com
wrote:
So the decision has to be based on some estimate
left out of any tutorials or guides.
Then let's add it.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
)
(3, 4, 6)
(3, 4, 6)
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
for numpy.scipy.org that just issues HTTP 301
redirects for everything? I can look into getting that set up.
https://help.github.com/articles/my-custom-domain-isn-t-working#multiple-domains-in-cname-file
--
Robert Kern
___
NumPy-Discussion mailing list
-github IP, and install a HTTP redirect **or** a HTTPD
rewrite on that IP. So we need to find a server to do that. Probably
easiest to ask numfocus, right?
There's no need. We'll just use the existing www.scipy.org Apache
server to host the redirects.
--
Robert Kern
is available in the Cephes library.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
= np.tocomplex(x, y)
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
versions will probably also affect this, not just the
target architecture. It's possible that those are actually the source
of this observation.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman
On Thu, May 2, 2013 at 2:38 PM, Charles R Harris
charlesr.har...@gmail.com wrote:
On Thu, May 2, 2013 at 7:28 AM, Robert Kern robert.k...@gmail.com wrote:
On Thu, May 2, 2013 at 12:03 PM, Nathaniel Smith n...@pobox.com wrote:
On 1 May 2013 23:12, Charles R Harris charlesr.har...@gmail.com
On Thu, May 2, 2013 at 3:28 PM, Charles R Harris
charlesr.har...@gmail.com wrote:
On Thu, May 2, 2013 at 7:47 AM, Robert Kern robert.k...@gmail.com wrote:
On Thu, May 2, 2013 at 2:38 PM, Charles R Harris
charlesr.har...@gmail.com wrote:
On Thu, May 2, 2013 at 7:28 AM, Robert Kern
On Thu, May 2, 2013 at 3:57 PM, Charles R Harris
charlesr.har...@gmail.com wrote:
On Thu, May 2, 2013 at 8:40 AM, Robert Kern robert.k...@gmail.com wrote:
On Thu, May 2, 2013 at 3:28 PM, Charles R Harris
charlesr.har...@gmail.com wrote:
On Thu, May 2, 2013 at 7:47 AM, Robert Kern
On Sat, May 4, 2013 at 12:43 AM, Pauli Virtanen p...@iki.fi wrote:
26.04.2013 18:51, Robert Kern kirjoitti:
[clip]
Right now, the recurring cost is kicking the www.scipy.org wiki every
once in a while under the deluge of spam.
It's dying a slow death again.
How about restricting editing
On Sun, May 5, 2013 at 1:34 PM, Pauli Virtanen p...@iki.fi wrote:
04.05.2013 14:12, Robert Kern kirjoitti:
[clip]
How about restricting editing pages to people in EditorGroup? There
should be an option in Moin config for that. I don't think there is any
other solution to the spam
On Sun, May 5, 2013 at 1:49 PM, Pauli Virtanen p...@iki.fi wrote:
05.05.2013 15:42, Robert Kern kirjoitti:
[clip: spam]
Manually. I have a whitelist of known-good pages that helps narrow it
down. I'll take care of it in a few hours.
Thanks a lot!
Done.
--
Robert Kern
]
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Mon, May 6, 2013 at 10:39 AM, Daniele Nicolodi dani...@grinta.net wrote:
On 06/05/2013 11:01, Robert Kern wrote:
np.roll() copies all of the data every time. It does not return a
view.
Are you sure about that? Either I'm missing something, or it returns a
view in my testing
On Mon, May 6, 2013 at 10:52 AM, Daniele Nicolodi dani...@grinta.net wrote:
On 06/05/2013 11:39, Daniele Nicolodi wrote:
On 06/05/2013 11:01, Robert Kern wrote:
np.roll() copies all of the data every time. It does not return a
view.
Are you sure about that? Either I'm missing something
has done an analysis of this situation around numpy, and if so
what conclusion they might have reached?
These are references to the book's text for the discussion of the
algorithms and concepts in general, not copies of the code from the
attached disk.
--
Robert Kern
Is this a regression in numpy, or should the code in scipy be fixed to
use a different test? Even if it is technically a regression, it might
be one of those it's been broken so long, it's a feature now
regressions.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy
On Thu, May 9, 2013 at 11:38 AM, Scott Sinclair
scott.sinclair...@gmail.com wrote:
On 9 May 2013 12:21, Robert Kern robert.k...@gmail.com wrote:
With master numpy (and back to 1.6.1, at least):
[~]
|1 np.int32(3054212286)
-1240755010
It seems like at one time, this used to raise
of this, whom do I speak to regarding numpy builds on Mac OS?
This mailing list.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
the
operative question here. Are the gains in readability worth the
nontrivial costs of deprecating and removing the old name? I, for one,
am generally not in favor of such deprecations.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion
to get more memory, memory_profiler could
not notice that, either.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Thu, May 16, 2013 at 1:32 PM, Martin Raspaud martin.rasp...@smhi.se wrote:
On 16/05/13 10:26, Robert Kern wrote:
Can anyone give a reasonable explanation ?
memory_profiler only looks at the amount of memory that the OS has
allocated to the Python process. It cannot measure the amount
return (quotient + (remainder 0)) * step
def new_floor(x, step):
quotient = x // step
return quotient * step
Floating point representation errors and accumulated floating point
arithmetic inaccuracies may give you unexpected results in many cases,
so be careful.
--
Robert Kern
did get?
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
of the corresponding
values of x.
I can't think of a better way than manually using loops. Any tricks here?
All you need is a single loop over the alphabet, which is usually not
problematic.
means = np.empty([M])
for i in range(M):
means[i] = y[x == i].mean()
--
Robert Kern
reason that floating point includes signed zeros.
http://en.wikipedia.org/wiki/Signed_zero
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
or a 64-bit build? That's probably the most relevant factor.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
: ZeroDivisionError: integer division or modulo by zero
Any ideas on what is driving this difference in behavior? BTW, the value of
item in the latter case is 0.
What is len(t) in the latter case?
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy
, then populate it using slice assignment.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
(dd.shape[:-2] + (-1,))
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
/flapack_esv.pyf.src#L231
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
their __format__() methods.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
(arbitrary_fill_value)
With just a little bit of extra help for structured dtypes (which is
relevant for zeros() but not much for you, I don't think).
--
Robert Kern
On Thu, Jun 6, 2013 at 8:56 PM, James Adams monoco...@gmail.com wrote:
I would like to create an array object and initialize the array's
thing more intuitive would be to disallow
subclassing from the Python builtin types entirely, but that's
*really* annoying.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
the 'f'
format code.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
of
confusion. However, there is no good way to issue deprecation warnings
when you use them, so that means that upgrades would cause sudden,
unwarned breakage, which we like to avoid.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
in that situation, but you may run into
problems with people using different compilers to build pyFFTW than
what was used to build the numpy binary they have installed.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http
really see why an np.empty() constructor exists, it seems
to do the same thing that np.ndarray() does.
It predates numpy and the numpy.ndarray type.
However, I don't know if
adding a np.ndarray_like() constructor would make much sense.
Also that.
--
Robert Kern
, there is no codepath in PyArray_Transpose() that even
contemplates a memory copy.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Wed, Jun 12, 2013 at 1:47 PM, Daniele Nicolodi dani...@grinta.net wrote:
On 12/06/2013 14:29, Robert Kern wrote:
On Wed, Jun 12, 2013 at 1:26 PM, Daniele Nicolodi dani...@grinta.net wrote:
There where the additional proposal (mostly neglected on the original
thread) to add the 'fill
.]],
[[ 0., 1., 2., 3., 4.],
[ 0., 1., 2., 3., 4.],
[ 0., 1., 2., 3., 4.],
[ 0., 1., 2., 3., 4.]]])
It's wafer-thin!
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org
buffer interface. This allows libraries to
communicate ndarray-like information using that interface instead of
sharing a particular concrete data structure.
http://www.python.org/dev/peps/pep-3118/
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy
a change to the grammar.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
as np
np.tile(3.0, (2,3))
array([[ 3., 3., 3.],
[ 3., 3., 3.]])
If someone explained this, sorry to
have missed it.
On 6/29/2013 5:25 PM, Robert Kern wrote:
It's implemented inefficiently.
It is aimed at a different use case (building up arrays
from other arrays
one convention, C picked another; numpy and Python
are built with C so we use its default conventions. Now, you are right that
image dimensions are usually quoted as (width, height), but numpy arrays
represent a much broader range of objects than images.
--
Robert Kern
., students)
np.column_stack([x, b]) does everything you need.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
submodule (e.g. in Scipy). Moreover, its
release cycle is not in any way tied to that of Numpy.
Works for me.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
,
numpy.uint8,
numpy.uint16,
numpy.uint32,
numpy.uint64,
numpy.uint64]
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
'as_strided' to avoid copy (and still
get the same output shape for B) ?
No, this would not be uniformly strided in the 0 axis.
--
Robert Kern
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
]
a
array([ 0, 1, 3, 6, 10])
My suspicition is that the second variant does not create intermediate
storage, and thus works on the intermediate result, effectively
performing a.cumsum().
Correct. Not creating intermediate storage is the point of using augmented
assignment.
--
Robert Kern
101 - 200 of 2461 matches
Mail list logo