changeset 32209:591c39fb7bca stable

Fix FTBFS against SuiteSparse 7.1.0 when SPQR is disabled (bug #64446). * liboctave/numeric/sparse-qr.cc sparse_qr_rep::Q): In SuiteSparse 7.1.0, "cs_complex_t" is "double _Complex". (It was previously "std::complex<double>".) This patches fixes the initialization syntax accordingly. Fixes code paths missed in 134152cf1a3f.
author Sébastien Villemot <sebastien@debian.org>
date Wed, 19 Jul 2023 14:01:46 +0200
parents b73ebf017461
children 20c84bfef1af 3321783e9fe5
files liboctave/numeric/sparse-qr.cc
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/numeric/sparse-qr.cc	Tue Jul 18 14:33:15 2023 -0700
+++ b/liboctave/numeric/sparse-qr.cc	Wed Jul 19 14:01:46 2023 +0200
@@ -1787,7 +1787,7 @@
       OCTAVE_LOCAL_BUFFER (cs_complex_t, bvec, nr);
 
       for (octave_idx_type i = 0; i < nr; i++)
-        bvec[i] = cs_complex_t (0.0, 0.0);
+        bvec[i] = 0.0;
 
       OCTAVE_LOCAL_BUFFER (Complex, buf, S->m2);
 
@@ -1795,7 +1795,7 @@
         {
           octave_quit ();
 
-          bvec[j] = cs_complex_t (1.0, 0.0);
+          bvec[j] = 1.0;
 
           volatile octave_idx_type nm = (nr < nc ? nr : nc);
 
@@ -1814,7 +1814,7 @@
           for (octave_idx_type i = 0; i < nr; i++)
             vec[i+idx] = buf[i];
 
-          bvec[j] = cs_complex_t (0.0, 0.0);
+          bvec[j] = 0.0;
         }
     }