[Numpy-discussion] What's wrong with floatint.c example code?

Ralph Heinkel ralph@dont-mind...
Thu Feb 26 12:42:44 CST 2009


I'm trying to get into the realm of implementing my own numpy data
types in numpy, and doing so I had a look at the floatint.c example
coming from the numpy/doc/newdtype_example directory.

Obviously it is not possible to create an array with the new floatint
type by doing

array([1,2,3,4,5,6,7,8], dtype=floatint)

but instead this works:


Would anybody mind helping me to understand this behavior? Is the
reason for this that the floatint.c stuff is incomplete and would need
some more elaboration in order to function as a proper type?

Thanks in advance


More information about the Numpy-discussion mailing list