Re: [Numpy-discussion] missing array type
by Sasha other posts by this author
Feb 28 2006 9:38AM messages near this date
Re: [Numpy-discussion] missing array type
|
Re: [Numpy-discussion] missing array type
Travis, I've noticed that you changed the code to allow x.strides = 0
<http://projects.scipy.org/scipy/numpy/changeset/2178> , but it does
not look like your changes alows creation of memory-saving zero stride
arrays:
> >> b = array([1])
> >> ndarray((5,), strides=(0,), buffer=b)
Traceback (most recent call last):
File "<stdin> ", line 1, in ?
TypeError: buffer is too small for requested array
I would think memory-saving is the only justification for allowing
zero strides.
What use does your change enable?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Alan G Isaac
Sasha
David M. Cooke
Sasha
Tim Hochberg
Colin J. Williams
Sasha
Travis Oliphant
Sasha
Travis Oliphant
Christopher Barker
Sasha
Sasha
Travis Oliphant
Sasha
Alan G Isaac
|