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

Method __rmul__

numpy/array_api/_array_object.py:929–938  ·  view source on GitHub ↗

Performs the operation __rmul__.

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

Source from the content-addressed store, hash-verified

927 return self
928
929 def __rmul__(self: Array, other: Union[int, float, Array], /) -> Array:
930 """
931 Performs the operation __rmul__.
932 """
933 other = self._check_allowed_dtypes(other, "numeric", "__rmul__")
934 if other is NotImplemented:
935 return other
936 self, other = self._normalize_two_args(self, other)
937 res = self._array.__rmul__(other._array)
938 return self.__class__._new(res)
939
940 def __ior__(self: Array, other: Union[int, bool, Array], /) -> Array:
941 """

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