Message10590
It's worth noting the following:
The jarray module is mostly phased out, but it is still has one
constructor function - zeros - that is not directly available in the
array module.
The equivalent of
jarray.zeros(n, typecode)
is
array.array(typecode, itertools.repeat(0, n))
however itertools.repeat does not define __len__ and therefore we
have to first build out the zero sequence separately, then copy
over. This overhead could be significant for large arrays. |
|
Date |
User |
Action |
Args |
2016-01-06 18:51:08 | zyasoft | set | messageid: <1452106268.71.0.394521728593.issue1756@psf.upfronthosting.co.za> |
2016-01-06 18:51:08 | zyasoft | set | recipients:
+ zyasoft, fwierzbicki, amak, juneau001, gmseed, alex |
2016-01-06 18:51:08 | zyasoft | link | issue1756 messages |
2016-01-06 18:51:07 | zyasoft | create | |
|