For array expressions A, T, and F:
ltl::merge( A, T, F ); // elementwise gives T if A != 0 else F.
E.g. merge( A, 1/A, 0 ) to avoid division by 0.