call to scalar expm1 with nan entry produces an integer overflow in kerne...

...l computation

the easiest way is to return immediatly nan in this case not going through kernel