I am using the swift accelerate APIs to process some data. However a few of these data points contain NaN values (result of trying to divide a zero value).
My question is can I easily deal with this using any inbuilt swift function? I am looking at replacing all values of NaN with zero values so that I can still further process these large data sets without an error.