lass="codeinput">M2 = cp_als(X,3,<span class="string">'maxiters'</span>,100,<span class="string">'init'</span>,U2);
</pre><pre class="codeoutput">
CP_ALS:
 Iter  1: f = 5.512552e-01 f-delta = 5.5e-01
 Iter  2: f = 6.377027e-01 f-delta = 8.6e-02
 Iter  3: f = 6.438691e-01 f-delta = 6.2e-03
 Iter  4: f = 6.728753e-01 f-delta = 2.9e-02
 Iter  5: f = 7.088155e-01 f-delta = 3.6e-02
 Iter  6: f = 7.144994e-01 f-delta = 5.7e-03
 Iter  7: f = 7.188603e-01 f-delta = 4.4e-03
 Iter  8: f = 7.245002e-01 f-delta = 5.6e-