Is there a way not to broadcast some part of an expression with @.
? MWE:
xs = (1, 2)
λs = (0.1, 0.2)
log.(xs) + log.(1.-xs) + log.(1. + rev(xs). + xs. * λs)
(note: no broadcasting for rev
) would be much more convenient and readable as
@. log(xs) + log(1-xs) + log(1 + PROTECT(rev(xs)) + xs * λs)