changeset 22984:45dba14ca7af

* qr.cc: Fix error in previous change. (bug #49957)
author John W. Eaton <jwe@octave.org>
date Fri, 30 Dec 2016 08:14:02 -0500
parents 360801053297
children a8e83b0144fe
files liboctave/numeric/qr.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/numeric/qr.cc	Thu Dec 29 16:31:00 2016 -0800
+++ b/liboctave/numeric/qr.cc	Fri Dec 30 08:14:02 2016 -0500
@@ -146,7 +146,7 @@
       octave_idx_type m = q.rows ();
       octave_idx_type n = r.cols ();
 
-      if (u_rows != m || v_rows != n || u_cols != v_cols)
+      if (u.rows () != m || v.rows () != n || u.cols () != v.cols ())
         (*current_liboctave_error_handler) ("qrupdate: dimensions mismatch");
 
       init (q*r + u * v.hermitian (), get_type ());
@@ -259,7 +259,7 @@
       if (dups)
         (*current_liboctave_error_handler) ("qrinsert: duplicate index detected");
 
-      if (u.numel () != m || u_cols != nj)
+      if (u.numel () != m || u.cols () != nj)
         (*current_liboctave_error_handler) ("qrinsert: dimensions mismatch");
 
       if (nj > 0 && (js(0) < 0 || js(nj-1) > n))