This is bizarre over engineering:
https://github.com/goldmansachs/gs-quant/blob/51a7ff1afb722c...
https://github.com/goldmansachs/gs-quant/blob/51a7ff1afb722c...
I suspect he wouldn't have thought it was over engineering if it didn't have such a long comment for one line of code... Which is silly.