5 seconds.
Elapsed time is 4.300102 seconds.
</pre><p>Measure times when the complete SVD is calculated:</p><pre class="codeinput">tic, [U,S,V]=svd(A,0); toc
tic, [U,S,V]=svd_lapack(A,0,<span class="string">'gesvd'</span>); toc
tic, [U,S,V]=svd_lapack(A,0,<span class="string">'gesdd'</span>); toc
</pre><pre class="codeoutput">Elapsed time is 7.816645 seconds.
Elapsed time is 14.802859 seconds.
Elapsed time is 7.770088 seconds.
</pre><p>In Octave, we can use svd_driver() to select subroutines:</p><pre class=