Skip to content

Instantly share code, notes, and snippets.

@iros
Created August 13, 2015 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iros/20db2c1b8e509f53ec57 to your computer and use it in GitHub Desktop.
Save iros/20db2c1b8e509f53ec57 to your computer and use it in GitHub Desktop.
Python nan tests
isnan 1 if nan element-by-element
isinf 1 if inf element-by-element
isfinite 1 if not inf and not nan element-by-element
isposfin,isnegfin 1 for positive or negative inf element-by-element
isreal 1 if not complex valued element-by-element
iscomplex 1 if complex valued element-by-element
isreal 1 if real valued element-by-element
is_string_like 1 if argument is a string scalar
is_numlike 1 if is a numeric type scalar
isscalar 1 if scalar scalar
isvector 1 if input is a vector scalar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment