[Numpy-discussion] creation of array of objects
kk
kiran.karkera at alopa.com
Thu May 17 10:06:36 EDT 2001
hi all..
I want to create an array of class objects of size say mXn. What
would be the easiest way to do this?
eg.
class test:
pass
i want 5x10 array of test() instances.
Then only way i know of doing this ,is by creating
a=array(test())
resize(a,[5,10])
but this creates only references to the initial objects.Is there some
way of creating fresh objects ? Also, if the __init__() call of the
class takes some parameters, i should be able to enter values..
thanx in anticipation
ciao
More information about the NumPy-Discussion
mailing list