1 f-delta = 5.8e-04
 Iter 40: f = 9.741285e-01 f-delta = 1.4e-04
 Iter 43: f = 9.744312e-01 f-delta = 8.6e-05
 Final f = 9.744312e-01 
</pre><p>Compare to the first solution using score, and see they are nearly the same because the score is close to 1.</p><pre class="codeinput">score(M1,M3)
</pre><pre class="codeoutput">
ans =

    0.9847

</pre><h2 id="14">Change the order of the dimensions in CP</h2><pre class="codeinput">[M4,~,info] = cp_als(X,3,<span class="string">'dimorder'</span>,[2 3 1],<span class=