sciquence.sequences.shapes_equal¶
-
sciquence.sequences.
shapes_equal
(*arrays)[source]¶ Check if all the arrays have the same shape.
Parameters: arrays (ndarrays) – Numpy arrays Returns: are_equal – True if all the arrays have the same shape, otherwise False Return type: bool Examples
>>> import sciquence.sequences as sq >>> import numpy as np >>> x = np.random.rand(1, 2) >>> y = np.random.rand(1, 2) >>> z = np.random.rand(1, 2, 3) >>> sq.shapes_equal(x, y) True >>> sq.shapes_equal(x, y, z) False