3 ms·
> The beauty here is that eml(x,y) is a pure, continuous analytical function with no hidden branching whatsoever. They use the complex version of logarithm, th
by gus_massa 7mo ago
> The beauty here is that eml(x,y) is a pure, continuous analytical function with no hidden branching whatsoever.
They use the complex version of logarithm, that has a lot of branching problems.
- drdeca 7mo agoDifferent sense of “branching”
- gus_massa 7mo agoYep.
- lugao 7mo agoWell, the paper explicitly takes the principal branch to solve this. So it isn't exploiting the branching for computation.
- gus_massa 7mo agoI agree, as the sibling comment there are two different things that are named "branches". Anyway, to get the principal branch in the microprocessor it's necessary to implement "atan2" that has a lot of special cases. For example, IIRC ln( -inf.0 + y * i ) = ´+inf.0 + pi * sign(y)