MCPcopy Create free account
hub / github.com/numpy/numpy / __rtruediv__

Method __rtruediv__

numpy/array_api/_array_object.py:1036–1045  ·  view source on GitHub ↗

Performs the operation __rtruediv__.

(self: Array, other: Union[float, Array], /)

Source from the content-addressed store, hash-verified

1034 return self
1035
1036 def __rtruediv__(self: Array, other: Union[float, Array], /) -> Array:
1037 """
1038 Performs the operation __rtruediv__.
1039 """
1040 other = self._check_allowed_dtypes(other, "floating-point", "__rtruediv__")
1041 if other is NotImplemented:
1042 return other
1043 self, other = self._normalize_two_args(self, other)
1044 res = self._array.__rtruediv__(other._array)
1045 return self.__class__._new(res)
1046
1047 def __ixor__(self: Array, other: Union[int, bool, Array], /) -> Array:
1048 """

Callers

nothing calls this directly

Calls 3

_check_allowed_dtypesMethod · 0.95
_normalize_two_argsMethod · 0.95
_newMethod · 0.80

Tested by

no test coverage detected