Python 3 with numpy and object refernces

Posted by user963386 on Stack Overflow See other posts from Stack Overflow or by user963386
Published on 2011-11-19T09:28:55Z Indexed on 2011/11/19 9:50 UTC
Read the original article Hit count: 223

Filed under:
|

I need to create a large matrix (array) structure (3 axis) and each element should store the reference to a Python object (myclass instance). Is it possible to use numpy to create such an array. Which data type should I use in order to store Python references? The advantage of numpy is the support of slicing at different levels. The alternativee is to create a nested (nested) list but it is a cumbersome solution.

© Stack Overflow or respective owner

Related posts about python

Related posts about numpy