pyphi.numerics.eq_mask#
- pyphi.numerics.eq_mask(array, value)[source]#
Return a boolean mask of the elements equal to
valueup toconfig.numerics.precision.Elementwise-equivalent to
eq(). The comparison replicatesmath.isclose— a symmetric relative tolerance with an absolute floor, and non-finite values equal only to themselves — which differs fromnp.isclose’s asymmetric additive form.