[bug #68434] Function gsvd crashes when matrices have 10 or more columns
"Dmitri A. Sergatskov" <[email protected]> Mon, 15 Jun 2026 05:21:53 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #13, bug #68434 (group octave):
The fault appears is in how gsvd constructs the singular value matrices when
the inputs lack full column rank.
(If [A; B] has full column rank k + l == n)
Since you compile Octave yourself, could you try this change:
--- a/liboctave/numeric/gsvd.cc Wed Jun 10 20:03:57 2026 +0200
+++ b/liboctave/numeric/gsvd.cc Mon Jun 15 05:14:39 2026 -0400
@@ -682,7 +682,7 @@
if (! fill_ptn)
{
- for (i = m; i < n; i++)
+ for (i = m; i < k + l; i++)
m_sigmaB.xelem (i-k, i) = 1.0;
}
and see if that solves the problem for you?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68434>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCai/EMAAKCRCqLAuaBUf3 TsEDAP0fZQ0Fm+J83ad4A2HprwVbZU2blIbJCdi3thgJicyqaAD9EPHQERe2Lgal SHyHbDy0t3Wf7Q+PciLwDciGa49kHAg= =fhLK -----END PGP SIGNATURE-----