octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53823] svd for fat single complex matrices cr


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #53823] svd for fat single complex matrices crashes octave
Date: Thu, 3 May 2018 10:53:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

URL:
  <http://savannah.gnu.org/bugs/?53823>

                 Summary: svd for fat single complex matrices crashes octave
                 Project: GNU Octave
            Submitted by: caliari
            Submitted on: Thu 03 May 2018 02:53:45 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: Patch Submitted
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

As reported in the maintainers mailing list


svd(single(randn(30,50) + i*randn(30,50)))


crashes octave. The problem is with the dimension of lrwork. As written here

https://github.com/Reference-LAPACK/lapack/blob/master/SRC/cgesdd.f

and

https://github.com/Reference-LAPACK/lapack/blob/master/SRC/zgesdd.f

LAPACK <= 3.6 (which is not so old) has a bug and requires lrwork = 7*min_mn.
The attached changeset fixes the problem for me.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 03 May 2018 02:53:45 PM UTC  Name: svd.diff  Size: 1KiB   By:
caliari

<http://savannah.gnu.org/bugs/download.php?file_id=44076>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53823>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]