# HG changeset patch # User John W. Eaton # Date 1454701990 18000 # Node ID f5e05c11c34355b502f86954bc9120c6c10fb57d # Parent 945695cafd2bc8bf02bb2ca5eb35b40aa17ed115 * fCmplxCHOL.cc: Use numel instead of length. diff -r 945695cafd2b -r f5e05c11c343 liboctave/numeric/fCmplxCHOL.cc --- a/liboctave/numeric/fCmplxCHOL.cc Fri Feb 05 14:50:00 2016 -0500 +++ b/liboctave/numeric/fCmplxCHOL.cc Fri Feb 05 14:53:10 2016 -0500 @@ -318,7 +318,7 @@ octave_idx_type n = chol_mat.rows (); - if (u.length () != n) + if (u.numel () != n) (*current_liboctave_error_handler) ("cholupdate: dimension mismatch"); init (chol_mat.hermitian () * chol_mat @@ -343,7 +343,7 @@ octave_idx_type n = chol_mat.rows (); - if (u.length () != n) + if (u.numel () != n) (*current_liboctave_error_handler) ("cholupdate: dimension mismatch"); if (singular (chol_mat)) @@ -370,7 +370,7 @@ octave_idx_type n = chol_mat.rows (); - if (u.length () != n + 1) + if (u.numel () != n + 1) (*current_liboctave_error_handler) ("cholinsert: dimension mismatch"); if (j < 0 || j > n) (*current_liboctave_error_handler) ("cholinsert: index out of range");