def _matmul(self, *inputs): # np.matmul became a ufunc in version 1.16.0 return matmul(*inputs)
def __rmatmul__(self, other): # Implements the protocol used by the '@' operator defined in PEP 465. return matmul(other, self)