netsse.tools.misc_func.areSame_mat#
- netsse.tools.misc_func.areSame_mat(A, B)#
Checks whether two matrices are identical, element-wise.
- Parameters:
A (2d-array) – Input matrix.
B (2d-array) – Input matrix.
- 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_vec
Checks whether two vectors are identical, element-wise.
Example
>>> areSame_mat(A,B)