[Numpy-discussion] dtype and pep3118

Fabrice Silva silva at lma.cnrs-mrs.fr
Wed Nov 23 09:01:02 EST 2011

Hi folks,
how should I specify a PEP3118 buffer format that could be understand by
numpy as the following dtype:

dtype = [('t11', '|f8'), ('t22', '|f8'), ('t33', '|f8'),
         ('t23', '|f8'), ('t13', '|f8'), ('t12', '|f8')]

so that I can manipulate a structured array and its fields ?

I tried strings like
"T{d:t11: d:t22: d:t33: d:t23: d:t13: d:t12:}:Tensor2d:"
"d:t11: d:t22: d:t33: d:t23: d:t13: d:t12:"

without success
Fabrice Silva

More information about the NumPy-Discussion mailing list