diff liboctave/numeric/oct-norm.cc @ 31457:a96f68a48e9e

maint: Remove more deprecated code from Octave 9. * NEWS.9.md: Update file with more removals of deprecated code. * libinterp/module.mk: Remove obsolete macro expansions from Octave 3.12. * oct-norm.cc: Remove "octave::" namespace qualifier on xcolnorms and xrownorms. * oct-norm.h: Remove unnecessary #includes. * mkoctfile.in.cc: Remove all references to LFLAGS.
author Rik <rik@octave.org>
date Wed, 16 Nov 2022 10:13:43 -0800
parents 51a3d3a69193
children dfa5d9c3ae72
line wrap: on
line diff
--- a/liboctave/numeric/oct-norm.cc	Wed Nov 16 09:21:35 2022 -0800
+++ b/liboctave/numeric/oct-norm.cc	Wed Nov 16 10:13:43 2022 -0800
@@ -511,10 +511,6 @@
   template <typename MatrixT, typename VectorT, typename R>
   R svd_matrix_norm (const MatrixT& m, R p, VectorT)
   {
-    // NOTE: The octave:: namespace tags are needed for the following
-    // function calls until the deprecated inline functions are removed
-    // from oct-norm.h.
-
     R res = 0;
     if (p == 2)
       {
@@ -522,9 +518,9 @@
         res = fact.singular_values () (0, 0);
       }
     else if (p == 1)
-      res = octave::xcolnorms (m, static_cast<R> (1)).max ();
+      res = xcolnorms (m, static_cast<R> (1)).max ();
     else if (lo_ieee_isinf (p) && p > 1)
-      res = octave::xrownorms (m, static_cast<R> (1)).max ();
+      res = xrownorms (m, static_cast<R> (1)).max ();
     else if (p > 1)
       {
         VectorT x;
@@ -541,15 +537,11 @@
   template <typename MatrixT, typename VectorT, typename R>
   R matrix_norm (const MatrixT& m, R p, VectorT)
   {
-    // NOTE: The octave:: namespace tags are needed for the following
-    // function calls until the deprecated inline functions are removed
-    // from oct-norm.h.
-
     R res = 0;
     if (p == 1)
-      res = octave::xcolnorms (m, static_cast<R> (1)).max ();
+      res = xcolnorms (m, static_cast<R> (1)).max ();
     else if (lo_ieee_isinf (p) && p > 1)
-      res = octave::xrownorms (m, static_cast<R> (1)).max ();
+      res = xrownorms (m, static_cast<R> (1)).max ();
     else if (p > 1)
       {
         VectorT x;