8000 Clarify difference between np.testing.assert_equal and np.testing.assert_array_equal · Issue #8457 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Clarify difference between np.testing.assert_equal and np.testing.assert_array_equal #8457
@anntzer

Description

@anntzer

The docs of assert_equal and assert_array_equal point to each other but do not mention the rather subtle differences between the two functions. So far, the only difference I've seen is that assert_equal will consider a scalar equal to a singleton array containing that scalar (which matches a precise reading of the docs) but I may or may not be missing something.

In any case a clarification in the docs would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0