Side question: is the difference between ? :
and ifelse
optimized away because of zero(T)
being a pure function in this case?
1 Like
No. ifelse
might segfault when you read out of bounds.
?
turns into a masked (SIMD) load.
2 Likes