0

I was reading https://docs.python.org/3/whatsnew/3.5.html#whatsnew-pep-465

Does that mean, that if I import numpy @ is equivalent to np.matmul()?

user2853437
  • 750
  • 8
  • 27
  • Dupe is a bit of a different question, but the first line of the top answer: "The @ operator calls the array's __matmul__ method, not dot. This method is also present in the API as the function np.matmul." – user3483203 Oct 04 '18 at 22:11

1 Answers1

2

That is correct. As you can read in the np.matmul documentation:

Notes

The matmul function implements the semantics of the @ operator introduced in Python 3.5 following PEP465.

Community
  • 1
  • 1
sacuL
  • 49,704
  • 8
  • 81
  • 106