bugGNU Octave - Bugs: bug #53823, svd for fat single complex...

 
 

bug #53823: svd for fat single complex matrices crashes octave

Submitter:  Marco Caliari <caliari>
Submitted:  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:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 04 May 2018 04:16:13 AM UTC, comment #1: 

I pushed your change to the stable branch here: http://hg.savannah.gnu.org/hgweb/octave/rev/a8a4b6e6e754.

I modified the commit message to include the bug number in the summary.

Rik <rik5>
Group administrator
Thu 03 May 2018 02:53:45 PM UTC, original submission:  

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.

Marco Caliari <caliari>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44076:  svd.diff added by caliari (1KiB - application/x-tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by caliari (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-04 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2018-05-03 caliari Attached File- Added svd.diff, #44076

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code