Occasionally NaNs when using similar()

I was about to write zeros([f(h) for f in (eltype, size)]...) to avoid multiple instances of h but your zero(h) is the winner :laughing:

2 Likes