Mercurial > hg > octave-nkf
diff liboctave/array/CMatrix.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/CMatrix.cc +++ b/liboctave/array/CMatrix.cc @@ -1183,7 +1183,7 @@ ComplexMatrix U = result.left_singular_matrix (); ComplexMatrix V = result.right_singular_matrix (); - ColumnVector sigma = S.diag (); + ColumnVector sigma = S.extract_diag (); octave_idx_type r = sigma.length () - 1; octave_idx_type nr = rows ();