roenxi
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
2076 ms·
- 6691.▲
- 6692.▲
- 6693.▲
- 6694.▲
- 6695.▲
- 6696.▲
- 6697.▲
- 6698.▲
- 6699.▲
- 6700.▲
- 6701.▲
- 6702.▲
- 6703.▲
- 6704.▲
Pretty sure it isn't broadcasting, because > c(1, 0) + c(1, 2, 3, 4, 5, 6)
[1] 2 2 4 4 6 6
succeeds but in numpy >>> numpy.array([1,0]) + numpy.array([1, 2, 3, 4, 5, 6])
Traceback (most recent call last): - 6705.▲
- 6706.▲
- 6707.▲
- 6708.▲
- 6709.▲
- 6710.▲
- 6711.▲
In what branch of maths or science is (1,0) + (1,2,3,4,5,6) even defined? That operation shouldn't make sense to anyone; it is adding vectors of different dimensions. The result should probably be vector promotion then (2,2,3,4,5,6). ( - 6712.▲
- 6713.▲
- 6714.▲
- 6715.▲
- 6716.▲
- 6717.▲
- 6718.▲
- 6719.▲
- 6720.▲
More ›