diff liboctave/array/fCMatrix.cc @ 15448:0a0912a9ab6e

Replace deprecated DiagArray2<T>::diag calls with DiagArray2<T>::extract_diag
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 27 Sep 2012 17:00:45 -0400
parents 2137f5638521
children 23c5f90f92cd
line wrap: on
line diff
--- a/liboctave/array/fCMatrix.cc
+++ b/liboctave/array/fCMatrix.cc
@@ -1185,7 +1185,7 @@
   FloatComplexMatrix U = result.left_singular_matrix ();
   FloatComplexMatrix V = result.right_singular_matrix ();
 
-  FloatColumnVector sigma = S.diag ();
+  FloatColumnVector sigma = S.extract_diag ();
 
   octave_idx_type r = sigma.length () - 1;
   octave_idx_type nr = rows ();