Skip to main content
. 2017 May 31;146(20):204110. doi: 10.1063/1.4983695

Algorithm 6.

Pseudo-code for updating Pc matrices without generating a long vector G.

Input: CP-format vector, F, with rank RF, matrix Pc
Output: matrix P, where Pr,r=Pr,rcPr,rc
For m=1T:
For l=1Rψ:
rm1Rψ+l
gr,chm,cfl,c
For r=1Rψ:
Pr,rPr,rcgr,c,fr,c
discard gr,c