Re: [Pytables-users] Complex number definition

2009-04-30 Thread Cyril Giraudon
Thanks a lot for your answer Francesc, Cyril. Francesc Alted a écrit : > Cyril, > > A Tuesday 28 April 2009, cyril giraudon escrigué: > >> Hi, >> >> I use HDF5 to store complex numbers and I see two ways of defining a >> complex number (since I believe there is no official manner): >> >

Re: [Pytables-users] Complex number definition

2009-04-28 Thread Francesc Alted
Cyril, A Tuesday 28 April 2009, cyril giraudon escrigué: > Hi, > > I use HDF5 to store complex numbers and I see two ways of defining a > complex number (since I believe there is no official manner): Yes, as far as I know there is not an blessed way to declare complex types in HDF5. In fact, Py

[Pytables-users] Complex number definition

2009-04-28 Thread cyril giraudon
Hi, I use HDF5 to store complex numbers and I see two ways of defining a complex number (since I believe there is no official manner): 1. A compound datatype : one real for the real part and one real for the imaginery part 2. A 2 element array datatype : two reals in an array A, A(0) is the real