agorajek/madlib — comment on commit 38b82d4beae75201ccace2a159959b09998e04c3
File: src/ports/postgres/modules/kmeans/kmeans.py_in line 804
By fschopp:

Comments:
1. Don't compare to NaN. It's always false according to IEEE754. IMHO it's a 'bug' if PG/GP handle this differently.
2. The NaN check is not necessary because svec_elsum will never return NaN.
3. I added check to your previous commit that could be used.