changeset 21208:f5e05c11c343

* fCmplxCHOL.cc: Use numel instead of length.
author John W. Eaton <jwe@octave.org>
date Fri, 05 Feb 2016 14:53:10 -0500
parents 945695cafd2b
children 67d2965af0b5
files liboctave/numeric/fCmplxCHOL.cc
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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");