Oh, you were asking how to denote elementwise application in maths notation ? I didn’t get that.
Yes, sorry I wasn’t clear on that. f(x) just applies the logistic/sigmoid function to each element in the 2 x 1 vector that is the result of b + wx. In Julia code, it’s clear to me that I’m applying sigmoid to each element of the vector (because of the dot) but I’m trying to write a small presentation for non-Julians that explains the code and I couldn’t find a standard way to notate that operation…
Mostly I (and I think people in general) think of broadcasting as a computational convenience.
But it shows up in a suprisingly common bit of calculus (though I might be out of touch with what people do with calculus).
The pullback of y=sum(f, xs; dims) is to broadcast the pullback of f at each element of xs against ȳ.
This broadcasting is exactly what is needed to handle the different dimensionality of of xs and ȳ if the dims argument use used.
In mathematics you can have vector or scalar valued functions of vectors, or any kind of mapping you want to define. You explain what the symbols mean and usually have a typographic convention for them that varies from paper to paper and textbook to textbook. People use boldface, italics, calligraphic fonts, etc. One thing you don’t need is funny dots or stars.
I would just use Julia’s notation of f.(x), honestly. There’s nothing “standard” here, but that notation doesn’t seem to be used for anything else commonplace, it matches the code, and it is inspired by the longstanding “dot” notation in Matlab for element-wise operators, with . standing for “pointwise” or something like that.