Message12432
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 |
|
Date |
User |
Action |
Args |
2019-04-10 18:22:00 | waynelloydsmith | set | recipients:
+ waynelloydsmith |
2019-04-10 18:22:00 | waynelloydsmith | set | messageid: <1554920520.43.0.290014674345.issue2758@roundup.psfhosted.org> |
2019-04-10 18:22:00 | waynelloydsmith | link | issue2758 messages |
2019-04-10 18:22:00 | waynelloydsmith | create | |
|