ndtools.operators module#
- eq_by_ne(left: T, right: Any, /) T[source]#
Implement the
==operator bynot(!=).- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left == right.- Return type:
T
- ge_by_gt(left: T, right: Any, /) T[source]#
Implement the
>=operator by> or ==.- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left >= right.- Return type:
T
- ge_by_le(left: T, right: Any, /) T[source]#
Implement the
>=operator bynot(<=) or ==.- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left >= right.- Return type:
T
- ge_by_lt(left: T, right: Any, /) T[source]#
Implement the
>=operator bynot(<).- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left >= right.- Return type:
T
- gt_by_ge(left: T, right: Any, /) T[source]#
Implement the
>operator by>= and !=.- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left > right.- Return type:
T
- gt_by_le(left: T, right: Any, /) T[source]#
Implement the
>operator bynot(<=).- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left > right.- Return type:
T
- gt_by_lt(left: T, right: Any, /) T[source]#
Implement the
>operator bynot(<) and !=.- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left > right.- Return type:
T
- le_by_ge(left: T, right: Any, /) T[source]#
Implement the
<=operator bynot(>=) or ==.- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left <= right.- Return type:
T
- le_by_gt(left: T, right: Any, /) T[source]#
Implement the
<=operator bynot(>).- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left <= right.- Return type:
T
- le_by_lt(left: T, right: Any, /) T[source]#
Implement the
<=operator by< or ==.- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left <= right.- Return type:
T
- lt_by_ge(left: T, right: Any, /) T[source]#
Implement the
<operator bynot(>=).- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left < right.- Return type:
T
- lt_by_gt(left: T, right: Any, /) T[source]#
Implement the
<operator bynot(>) and !=.- Parameters:
left (T) – Left hand side of the operator.
right (Any) – Right hand side of the operator.
- Returns:
Result of
left < right.- Return type:
T