diff liboctave/numeric/sparse-lu.h @ 29931:7faff48840eb

prefer data over fortran_vec for read-only access to data See also the discussion here: https://octave.discourse.group/t/rename-uses-of-fortran-vec-to-data-for-clarity/1439 * Array.h (const T * Array<T>::fortran_vec (void) const): Deprecate. Change all uses to call data instead.
author John W. Eaton <jwe@octave.org>
date Fri, 30 Jul 2021 11:46:05 -0400
parents 7854d5752dd2
children 7215f2324c8a
line wrap: on
line diff
--- a/liboctave/numeric/sparse-lu.h	Fri Jul 30 17:34:10 2021 +0200
+++ b/liboctave/numeric/sparse-lu.h	Fri Jul 30 11:46:05 2021 -0400
@@ -106,9 +106,9 @@
 
       OCTAVE_API PermMatrix Pr_mat (void) const;
 
-      const octave_idx_type * row_perm (void) const { return P.fortran_vec (); }
+      const octave_idx_type * row_perm (void) const { return P.data (); }
 
-      const octave_idx_type * col_perm (void) const { return Q.fortran_vec (); }
+      const octave_idx_type * col_perm (void) const { return Q.data (); }
 
       double rcond (void) const { return cond; }