netsse.tools.misc_func.areSame_vec#
- netsse.tools.misc_func.areSame_vec(a, b)#
Checks whether two vectors are identical, element-wise.
- Parameters:
a (1d-array) – Input vector.
b (1d-array) – Input vector.
- Returns:
False
fora!=b
,True
fora=b
.- Return type:
Note
If
a
andb
do not have the same shape, thenFalse
is returned.See also
areSame_mat
Checks whether two matrices are identical, element-wise.
Example
>>> areSame_vec(a,b)