[Numpy-discussion] Using new numeric instances in NumArray and RecArray.
Ivan Vilata i Balaguer
ivilata at carabos.com
Mon Dec 13 03:40:04 CST 2004
Hi all! I am trying to define new numeric types to use them in
NumArray and RecArray objects. My intention is to define them as
equivalent to other types, but also make possible to distinguish them.
I tried "MyInt32 = IntegralType(4, 'MyType')", which registered OK, is
equivalent to Int32, but distinguishable from it. However, I am not
allowe to create a NumArray based on it: "a = array([1,2], MyInt32)"
fails with "RuntimeError: _numarray_init: can't get typeno for type".
Is it possible to integrate new types seamlessly into NumArray and
RecArray objects? Is this the right approach, or am I getting that
Well, thanks a lot for your cooperation.
PS: Please CC: me with your replies, since I am not registered in the
list. Thanks again.
Ivan Vilata i Balaguer >qo< http://www.carabos.com/
Cárabos Coop. V. V V Enjoy Data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20041213/84c6b8c6/attachment.bin
More information about the Numpy-discussion