> -Original Message-
> From: [EMAIL PROTECTED] [mailto:numpy-
> [EMAIL PROTECTED] On Behalf Of Sebastian Haase
> Sent: 15 September 2006 03:21
> To: numpy-discussion
> Subject: [Numpy-discussion] how to get info about internals of an
> arrayobject ?
>
> Hi,
> what I'm asking is if numpy ha
Hi all,
I try to use recarray with rec.fromrecords on time-series, datas come from a
file where they are stored in csv format, with after each data colum there is
one column meanning the state of the data, and the first column is for dates.
Then, is it possible to directly transform column of str
Dear Friends,my question is the following:Suppose i have the following code:>>> from LinearAlgebra import *>>> from Numeric import *>>> A = [1,2,1,3,1,3,4,1,2]>>> B = reshape(A,(3,3))>>> C = sum(B,1)>>> Carray([4, 7, 7])>>> Now, my problem is to construct a degree matrix D which is a 3 * 3 matrix w
Hi,
[SU]: Now, my problem is to construct a degree matrix D which is a 3 * 3
matrix with diagonal elements 4,7,7
You might have a look at the Numpy Example List, at the function diag().
Ciao,
Joris
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
Forgot the link to the NEL: http://www.scipy.org/Numpy_Example_List
J.
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff don
On 9/15/06, Satya Upadhya <[EMAIL PROTECTED]> wrote:
Dear Friends,my question is the following:Suppose i have the following code:>>> from LinearAlgebra import *>>> from Numeric import *>>> A = [1,2,1,3,1,3,4,1,2]
>>> B = reshape(A,(3,3))>>> C = sum(B,1)>>> Carray([4, 7, 7])>>> Now, my problem is to
Lionel Roubeyrie wrote:
> Hi all,
> I try to use recarray with rec.fromrecords on time-series, datas come from a
> file where they are stored in csv format, with after each data colum there is
> one column meanning the state of the data, and the first column is for dates.
> Then, is it possible t
A Divendres 15 Setembre 2006 15:57, Robert Kern va escriure:
> Lionel Roubeyrie wrote:
> > Hi all,
> > I try to use recarray with rec.fromrecords on time-series, datas come
> > from a file where they are stored in csv format, with after each data
> > colum there is one column meanning the state of
Hi list,
I'm using PyArray_DescrConverter with a dict object to create a "struct-like"
dtype from C.
As the struct contains different data types I run into "unaligned access"
problems.
Is there a way to force alignment or to get trailing unused bytes in the
dtpye?
Thanks, Martin
-
On Friday 15 September 2006 16:13, Martin Wiechert wrote:
> Hi list,
>
> I'm using PyArray_DescrConverter with a dict object to create a
> "struct-like" dtype from C.
> As the struct contains different data types I run into "unaligned access"
> problems.
on IA64 I should have mentioned
> Is there
Travis Oliphant wrote:
> Has anybody had any experience with the 3-D visualization software
> VISIT? It has Python bindings and seems to be pretty sophisticated.
> I'm wondering why I haven't heard more about it.
>
> http://www.llnl.gov/visit/
No reaction up to now, so...
I have just tried
A Divendres 15 Setembre 2006 16:13, Martin Wiechert va escriure:
> Hi list,
>
> I'm using PyArray_DescrConverter with a dict object to create a
> "struct-like" dtype from C.
> As the struct contains different data types I run into "unaligned access"
> problems.
> Is there a way to force alignment o
On Friday 15 September 2006 16:40, Francesc Altet wrote:
> A Divendres 15 Setembre 2006 16:13, Martin Wiechert va escriure:
> > Hi list,
> >
> > I'm using PyArray_DescrConverter with a dict object to create a
> > "struct-like" dtype from C.
> > As the struct contains different data types I run int
Hello all
In [1]: import numpy as N
In [3]: N.dtype({'names' : ['x', 'y'],
'formats' : [N.intc, N.float64]},
align=True)
Out[3]: dtype([('x', '
String Form:
Namespace: Interactive
File: c:\python24\lib\site-packages\numpy\__init__.py
Docstring:
On Friday 15 September 2006 17:53, Albert Strasheim wrote:
> Hello all
>
> In [1]: import numpy as N
>
> In [3]: N.dtype({'names' : ['x', 'y'],
> 'formats' : [N.intc, N.float64]},
> align=True)
> Out[3]: dtype([('x', '
> The reason you might not have discovered this
I haven't tried VisIT before but thanks for the link. I also downloaded and am
checking it out.
Along this same line of discussion, has anyone tried OOF2 which is an FEA
package that also has some strong python connections?
http://www.ctcms.nist.gov/oof/oof2.html
I'm working on a Windows machi
Albert Strasheim wrote:
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:numpy-
>> [EMAIL PROTECTED] On Behalf Of Sebastian Haase
>> Sent: 15 September 2006 03:21
>> To: numpy-discussion
>> Subject: [Numpy-discussion] how to get info about internals of an
>> arrayobject ?
>>
>> Hi,
Hi,
I am facing a rather frustrating problem with numpy/scipy: after
upgrading to svn numpy and scipy, and trying to remove most of the now
unnecessary casting (floats) the program I wrote does not give me the
right answer. It seems that the answer is somewhat scaled down (but not
in a simple way)
Sebastian Haase wrote:
> Hi,
> what I'm asking is if numpy has an equivalent to numarray's info() function:
>
na.arange(10).info()
numpy.numarray.info(numpy.arange(10))
(get recent SVN as there were some bugs just fixed.
-Travis
---
Martin Wiechert wrote:
> Thanks Albert! Do you also know the corresponding C-API function? It cannot
> be
> PyArray_DescrConverter (PyObject *, PyArray_Descr **), whose signature has no
> "align", right?
>
The DescrConverter function is meant for "O&"-style conversions. It
can't accept an a
On Friday 15 September 2006 19:14, Travis Oliphant wrote:
> Martin Wiechert wrote:
> > Thanks Albert! Do you also know the corresponding C-API function? It
> > cannot be PyArray_DescrConverter (PyObject *, PyArray_Descr **), whose
> > signature has no "align", right?
>
> The DescrConverter function
Martin Wiechert wrote:
> Hi list,
>
> I'm using PyArray_DescrConverter with a dict object to create a "struct-like"
> dtype from C.
> As the struct contains different data types I run into "unaligned access"
> problems.
> Is there a way to force alignment or to get trailing unused bytes in the
>
On Friday 15 September 2006 20:05, Travis Oliphant wrote:
> Martin Wiechert wrote:
> > Hi list,
> >
> > I'm using PyArray_DescrConverter with a dict object to create a
> > "struct-like" dtype from C.
> > As the struct contains different data types I run into "unaligned access"
> > problems.
> > Is
Hello all
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:numpy-
> [EMAIL PROTECTED] On Behalf Of Martin Wiechert
> Sent: 15 September 2006 19:53
> To: Discussion of Numerical Python
> Subject: Re: [Numpy-discussion]PyArray_DescrConverter - alignment /
> trailingunused bytes
>
> On
Argh
> >
>
> > One final question. To me the repr of a dtype with gaps is a little bit
> > puzzling:
> >
> > >>> dtype ({'names': ['a', 'b', 'c'], 'formats': [' > 'offsets': [0, 16, 24]})
> > dtype([('a', '|S4'), ('', '|V12'), ('b', ' > ' >
> > There should be no gap between "b" and "c" but stil
Martin Wiechert wrote:
> On Friday 15 September 2006 19:14, Travis Oliphant wrote:
>
>> Martin Wiechert wrote:
>>
>>> Thanks Albert! Do you also know the corresponding C-API function? It
>>> cannot be PyArray_DescrConverter (PyObject *, PyArray_Descr **), whose
>>> signature has no "align",
On Friday 15 September 2006 20:27, Travis Oliphant wrote:
> Martin Wiechert wrote:
> > On Friday 15 September 2006 19:14, Travis Oliphant wrote:
> >> Martin Wiechert wrote:
> >>> Thanks Albert! Do you also know the corresponding C-API function? It
> >>> cannot be PyArray_DescrConverter (PyObject *,
Eric Emsellem wrote:
> Hi,
>
> I am facing a rather frustrating problem with numpy/scipy: after
> upgrading to svn numpy and scipy, and trying to remove most of the now
> unnecessary casting (floats) the program I wrote does not give me the
> right answer. It seems that the answer is somewhat scal
I have looked at it, and I even know somebody who is using python to
put in a data reader for FVCOM (a finite volume ocean model). He has
a prototype working. I have no experience with the python bindings
personally.
I looked into compiling it from source (for an intel mac), but it was
On Friday 15 September 2006 10:00, Travis Oliphant wrote:
> Sebastian Haase wrote:
> > Hi,
> >
> > what I'm asking is if numpy has an equivalent to numarray's info()
function:
> na.arange(10).info()
>
> numpy.numarray.info(numpy.arange(10))
>
> (get recent SVN as there were some bugs just fix
Sebastian Haase wrote:
>On Friday 15 September 2006 10:00, Travis Oliphant wrote:
>
>
>>Sebastian Haase wrote:
>>
>>
>>>Hi,
>>>
>>>what I'm asking is if numpy has an equivalent to numarray's info()
>>>
>>>
>function:
>
>
>>na.arange(10).info()
>>
>>
>>numpy.n
On Friday 15 September 2006 12:49, Travis Oliphant wrote:
> Sebastian Haase wrote:
> >On Friday 15 September 2006 10:00, Travis Oliphant wrote:
> >>Sebastian Haase wrote:
> >>>Hi,
> >>>
> >>>what I'm asking is if numpy has an equivalent to numarray's info()
> >
> >function:
> >>na.arange(10).in
32 matches
Mail list logo