Skip to content

ENH: allow complex inputs in std and var#214

Open
ev-br wants to merge 1 commit into
data-apis:mainfrom
ev-br:var_complex
Open

ENH: allow complex inputs in std and var#214
ev-br wants to merge 1 commit into
data-apis:mainfrom
ev-br:var_complex

Conversation

@ev-br

@ev-br ev-br commented Jun 30, 2026

Copy link
Copy Markdown
Member

# Note: the keyword argument correction is different here
if x.dtype not in _real_floating_dtypes:
raise TypeError("Only real floating-point dtypes are allowed in std")
if x.dtype not in _floating_dtypes:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gate on the array API version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant