Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std(axis) returns an array (??) of n DNDarrays instead of a DNDarray of size n #766

Closed
ClaudiaComito opened this issue Apr 29, 2021 · 0 comments · Fixed by #767
Closed
Assignees
Labels
bug Something isn't working High priority, urgent

Comments

@ClaudiaComito
Copy link
Contributor

Description

See title

To Reproduce

>>> a = ht.random.randn(4,4)
>>> a
DNDarray([[-1.8112, -1.5437, -0.5754,  0.6996],
          [-1.1083,  0.5049,  1.2382, -0.2294],
          [ 0.6129,  0.4115, -0.0879,  0.5323],
          [-0.5036,  1.1924, -0.6366, -0.5685]], dtype=ht.float32, device=cpu:0, split=None)
>>> ht.std(a, 0, ddof=1)
array([DNDarray(1.0269, dtype=ht.float32, device=cpu:0, split=None),
       DNDarray(1.1760, dtype=ht.float32, device=cpu:0, split=None),
       DNDarray(0.8711, dtype=ht.float32, device=cpu:0, split=None),
       DNDarray(0.6060, dtype=ht.float32, device=cpu:0, split=None)],
      dtype=object)

Expected behavior
Example with axis=1:

>>> ht.std(a, 1)
DNDarray([1.1364, 1.0046, 0.3145, 0.8827], dtype=ht.float32, device=cpu:0, split=None)

Version Info
release/1.0.x and current master

@ClaudiaComito ClaudiaComito added bug Something isn't working documentation Anything related to documentation labels Apr 29, 2021
@ClaudiaComito ClaudiaComito added High priority, urgent and removed documentation Anything related to documentation labels Apr 29, 2021
@coquelin77 coquelin77 mentioned this issue Apr 29, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working High priority, urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants