I have a kernel Metal function, it receives an X,Y grid position of an element. I would like to apply statistical filtering to some elements, and need to know the standard deviation of the value from it's neighbors.
I can implement the function myself inside the kernel function, but am curious if there's a better/more efficient way.
Does iOS Metal provide ready-made math functions that I can use to compute standard deviation of a small number (10 or so) members?