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:
FalseforA!=B,TrueforA=B.- Return type:
Note
If
AandBdo not have the same shape, thenFalseis returned.See also
areSame_vecChecks whether two vectors are identical, element-wise.
Example
>>> areSame_mat(A,B)