MCPcopy Create free account
hub / github.com/numpy/numpy / operator==

Method operator==

numpy/core/src/common/half.hpp:140–143  ·  view source on GitHub ↗

@name Comparison operators (ordered) @{

Source from the content-addressed store, hash-verified

138 /// @name Comparison operators (ordered)
139 /// @{
140 constexpr bool operator==(Half r) const
141 {
142 return !(IsNaN() || r.IsNaN()) && Equal(r);
143 }
144 constexpr bool operator<(Half r) const
145 {
146 return !(IsNaN() || r.IsNaN()) && Less(r);

Callers

nothing calls this directly

Calls 1

IsNaNMethod · 0.80

Tested by

no test coverage detected