Timeline for List of binary numbers: How many positions have a one and zero
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 12, 2020 at 13:53 | comment | added | GZ0 | @trincot Yeah, you are right. | |
Nov 12, 2020 at 13:28 | comment | added | trincot |
So what did your reduce call look like? It should be like reduce(and_, lst, lst[0]) then
|
|
Nov 12, 2020 at 13:26 | comment | added | HighwayJohn | On numba.pydata.org/numba-doc/dev/reference/pysupported.html it says "The functools.reduce() function is supported but the initializer argument is required." But I could not get it to work. | |
Nov 12, 2020 at 13:10 | comment | added | trincot | Yes, I had the same reaction before. The OP asked a previous question on Stack Overflow where I answered like that, but apparently, that is not supported by numba, which only supports a subset of Python. | |
Nov 12, 2020 at 13:05 | comment | added | hjpotter92 |
I feel like functools.reduce might be more suited to the operations.
|
|
Nov 12, 2020 at 13:01 | history | answered | trincot | CC BY-SA 4.0 |