TypeMatch
Source¶
Bases: Enum
Whether a comparison of two Arrays also compares their types, used by Equality.
Added in version 0.1.0
Examples:
import numdaplot as ndp
integers = ndp.Array.from_list([1, 2])
decimals = ndp.Array.from_list([1.0, 2.0])
integers.is_equal(ndp.Equality(other=decimals, types=ndp.TypeMatch.IGNORED))
# True
integers.is_equal(ndp.Equality(other=decimals, types=ndp.TypeMatch.STRICT))
# False