Last updated on Sep 04, 2024.

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 for A!=B, True for A=B.

Return type:

bool

Note

If A and B do not have the same shape, then False is returned.

See also

areSame_vec

Checks whether two vectors are identical, element-wise.

Example

>>> areSame_mat(A,B)