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

Method __rmatmul__

numpy/array_api/_array_object.py:886–896  ·  view source on GitHub ↗

Performs the operation __rmatmul__.

(self: Array, other: Array, /)

Source from the content-addressed store, hash-verified

884 return self.__class__._new(res)
885
886 def __rmatmul__(self: Array, other: Array, /) -> Array:
887 """
888 Performs the operation __rmatmul__.
889 """
890 # matmul is not defined for scalars, but without this, we may get
891 # the wrong error message from asarray.
892 other = self._check_allowed_dtypes(other, "numeric", "__rmatmul__")
893 if other is NotImplemented:
894 return other
895 res = self._array.__rmatmul__(other._array)
896 return self.__class__._new(res)
897
898 def __imod__(self: Array, other: Union[int, float, Array], /) -> Array:
899 """

Callers 1

test_operatorsFunction · 0.45

Calls 2

_check_allowed_dtypesMethod · 0.95
_newMethod · 0.80

Tested by 1

test_operatorsFunction · 0.36