factor out the computation of the linear part of the reference-simplex-to-standard-simplex computation [[Imported from SVN: r6212]]