Open AStupidBear opened 4 years ago
The problem here is that broadcasting doesn't support broadcasting the first dimension yet when it isn't known that size(src,1) == 1
at compile time.
I'm not sure what the best way to support that is.
As a workaround, on master you can:
xs = rand(T, M);
max_ = maximum(xs, dims=1)
@test (@avx exp.(xs .- LowDimArray{(false,)}(max_))) ≈ exp.(xs .- LowDimArray{(false,)}(max_))