https://9dok.net/document/y6e4p01n-compute-corresponding-local-matrices-φiφj-xφi-xφj-xφi.html