sciquence.sequences.size_equal¶
-
sciquence.sequences.
size_equal
(*arrays, **kwargs)[source]¶ Check if all the arrays have the same length along the particular axis.
Parameters: - arrays (ndarrays) – Numpy arrays
- kwargs –
- axis: int
- Axis index, default: 0
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) >>> v = np.random.rand(2, 2, 3) >>> sq.shapes_equal(x, y) True >>> sq.shapes_equal(x, y, z) True >>> sq.shapes_equal(x, y, z, v) True