pan>,0); <span class="comment">% &lt;-No output</span>
</pre><h2 id="12">Use HOSVD initial guess</h2><p>Use the <tt>'nvecs'</tt> option to use the leading mode-n singular vectors as the initial guess.</p><pre class="codeinput">M3 = cp_als(X,3,<span class="string">'init'</span>,<span class="string">'nvecs'</span>,<span class="string">'printitn'</span>,10);
</pre><pre class="codeoutput">
CP_ALS:
 Iter 10: f = 9.334888e-01 f-delta = 3.5e-03
 Iter 20: f = 9.604549e-01 f-delta = 1.9e-03
 Iter 30: f = 9.712518e-0