0

I am trying to understand some code in which I found this statement. I don't know what "@" sign is doing here.

This is a running code for landmark detection, you can check full code here: https://github.com/cleardusk/3DDFA/blob/master/utils/ddfa.py

vertex = p @ (u + w_shp @ alpha_shp + w_exp @ alpha_exp).reshape(3, -1, order='F') + offset
halfer
  • 19,824
  • 17
  • 99
  • 186
Parag Jain
  • 612
  • 2
  • 14
  • 31

1 Answers1

-1

I believe it's used for matrix multiplication. Refer this for more: What does the "at" (@) symbol do in Python?

Ajay Dabas
  • 1,404
  • 1
  • 5
  • 15
  • Vote to close as duplicate, don't add an "answer" that's just a link to another question. – Charles Duffy Dec 09 '19 at 11:43
  • For a metaphor on how to think about it, see the classic [meta] post [Your answer is in another castle: When is an answer not an answer?](https://meta.stackexchange.com/questions/225370/your-answer-is-in-another-castle-when-is-an-answer-not-an-answer); a sign telling someone where to get apples is not an apple, just as a link telling someone where to find an answer is not an answer itself. – Charles Duffy Dec 09 '19 at 11:45
  • it is not the same problem i think – Parag Jain Dec 09 '19 at 11:45
  • @ParagJain, there's more than one possibility given in that link; read all of them (specifically including the discussion of matrix multiplication), not just the first one. – Charles Duffy Dec 09 '19 at 11:46
  • 1
    I'm new to Stack Overflow so I'll keep that in mind next time. – Ajay Dabas Dec 09 '19 at 11:46
  • @charles okay!! – Parag Jain Dec 09 '19 at 11:47
  • https://stackoverflow.com/a/53184344/14122 is a specific answer on the linked question that focuses *only* on matrix multiplication. – Charles Duffy Dec 09 '19 at 11:47
  • thanks man you want me to delete this question – Parag Jain Dec 09 '19 at 11:49