I have a large amount of data to process with math intensive operations on each data set. Much of it is analogous to image processing. However, since this data is read direc
Since the floating-point numbers come from a device, they probably have a limited range. You can use some other special number, rather than NaN, to indicate absense of data, e.g. 1e37. This solution is portable. I do not know whether or not is more convinient for you than using a bool flag.