are_equal¶
- are_equal(a: list | NDArray[generic], b: list | NDArray[generic]) bool[source]¶
Return True if the contents of the given arrays are equal.
This utility function check the equivalence of array like objects. Two arrays are equal if they have the same number of elements and elements of the same index are equal.
Examples: >>> are_equal([1, 2, 3], [1, 2, 3]) True >>> are_equal([1, 2, 3], [1, 2, 3, 4]) False