Consistent form means that either they have the same form, or one input array can be passed to create the same form as another.
Parameters:
arr1: [array_like] Input array, we need to test. arr2: [array_like] Input array, we need to test.
Return:
True, if both arrays are equivalent; otherwise False
Code: Explaining Operation
< code class = "undefined spaces">
|
Output:
arr1: [0 1 2 3] arr2: [7, 4, 6, 7] Result: False arr1: [0 1 2 3] arr2: [0 1 2 3] Result: Tru e arr1: [0 1 2 3] arr2: [0 1 2 3 4] Result: False a: False b: True