Broadcast for Array of Array

I think it’s kinda ironic that 3 hours ago the OP posted this thread: Sigmoid function in Julia - #4 by hasanOryx where he was told “don’t define elementwise functions on arrays, just use broadcast.” But now when he runs into a nested array it becomes clear that the broadcast machinery isn’t general enough to do what he wants.

I guess I just don’t understand why recursive broadcast is always dismissed out of hand.

1 Like