Message12432

Author waynelloydsmith
Recipients waynelloydsmith
Date 2019-04-10.18:22:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554920520.43.0.290014674345.issue2758@roundup.psfhosted.org>
In-reply-to
Content
need to be able to create 2D and 3D arrays like java Float[][][]
examples
a = jarray.array([[[1.0]*4]*2],'f')  
TypeError: can't convert [[1.0, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 1.0]] to float
a = jarray.zeros(jarray.zeros(4096*4,"f"),"f") 
   TypeError: zeros(): 1st arg can't be coerced to int
a = jarray.zeros([[[1]*4]*2],"f")  # 3D array of floats
   TypeError: zeros(): 1st arg can't be coerced to int
History
Date User Action Args
2019-04-10 18:22:00waynelloydsmithsetrecipients: + waynelloydsmith
2019-04-10 18:22:00waynelloydsmithsetmessageid: <1554920520.43.0.290014674345.issue2758@roundup.psfhosted.org>
2019-04-10 18:22:00waynelloydsmithlinkissue2758 messages
2019-04-10 18:22:00waynelloydsmithcreate