oc-spam66 wrote:
> Is it really how it should be ?
>
> I thought this method should be restrictive in what it accepts (because
> the goal is to fill an array with precise dimensions).
if you know how big an array you want, then you should use the "count"
keyword:
np.fromstring("45.6 76.4", dty
On Fri, Aug 8, 2008 at 7:22 PM, Travis E. Oliphant
<[EMAIL PROTECTED]> wrote:
> The 1.2 version of NumPy is going to be tagged. There is at least one
> change I'd like to add: The hasobject member of the PyArray_Descr
> structure should be renamed to "flags" and converted to a 32-bit
> integer.
Hi all,
The 1.2 version of NumPy is going to be tagged. There is at least one
change I'd like to add: The hasobject member of the PyArray_Descr
structure should be renamed to "flags" and converted to a 32-bit
integer.
What does everybody think about this change? It should have minimal
> > Shouldn't it raise an exception ValueError ? (because "abcd" is not a float)
>
> I don't think so, but it shouldn't return a zero either.
>
> That call should mean: scan this whitespace separated string for as many
> floating point numbers as it has. There are none, so it should return
> a
oc-spam66 wrote:
> I am now disturbed by this result :
>
> > In [1]: import numpy
> > In [2]: numpy.fromstring("abcd", dtype = float, sep = ' ')
> > Out[2]: array([ 0.])
>
> Shouldn't it raise an exception ValueError ? (because "abcd" is not a float)
I don't think so, but it shouldn't return
oc-spam66 wrote:
> Hello,
>
> I would like to build a big ndarray by adding rows progressively.
>
> I considered the following functions : append, concatenate, vstack and
> the like.
> It appears to me that they all create a new array (which requires
> twice the memory).
>
> Is there a method for
Hello,
I would like to build a big ndarray by adding rows progressively.
I considered the following functions : append, concatenate, vstack and the like.
It appears to me that they all create a new array (which requires twice the
memory).
Is there a method for just adding a row to a ndarray w
Hi Robert
2008/8/6 Robert Cimrman <[EMAIL PROTECTED]>:
> Note also that the order of outputs has changed (previously unique1d()
> returned (i, b) for return_index=True).
Does this not constitute an API change?
Stéfan
___
Numpy-discussion mailing list
N
Thank you for the answers,
I am now disturbed by this result :
> In [1]: import numpy
> In [2]: numpy.fromstring("abcd", dtype = float, sep = ' ')
> Out[2]: array([ 0.])
Shouldn't it raise an exception ValueError ? (because "abcd" is not a float)
Regards,
O.C.
Créez votre adresse électroni
Just a reminder: I will be tagging 1.2.0b1 tomorrow evening.
--
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/
___
Numpy-discussion mailing list
Numpy-discussion
10 matches
Mail list logo