Last updated on Sep 04, 2024.

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 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_mat

Checks whether two matrices are identical, element-wise.

Example

>>> areSame_vec(a,b)