add nan's for floating points
added simd for meanf