bugGNU Octave - Bugs: bug #50977, rank(): Subscript error

 
 

bug #50977: rank(): Subscript error

Submitted by:  Alexander Wilms <alexanderw>
Submitted on:  Tue 09 May 2017 04:28:29 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Tue 09 May 2017 10:13:05 AM UTC, comment #9:

Closing report as invalid.

Pantxo Diribarne <pantxo>
Project Member
Tue 09 May 2017 06:32:45 AM UTC, comment #8:

Damn, thanks a lot. Yes, this report can be closed.

Alexander Wilms <alexanderw>
Tue 09 May 2017 06:26:38 AM UTC, comment #7:

In the file lab.m you have
rank=rank(Q_C)
this overrides function "rank" with variable "rank".
Change it to something like
rank0 = rank(Q_C)

(and later the line
if rank ==

Dmitri.

p.s. I think we can close this bug report.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 09 May 2017 05:56:28 AM UTC, comment #6:

lab.m works with precise_rank(), but not rank().

Alexander Wilms <alexanderw>
Tue 09 May 2017 05:51:48 AM UTC, comment #5:

Octave output:

I just tried other equations for 'tol', and both work:

tol = max (size (A)) * s(1) * eps;
tol = max (size(A)) * eps (max(s));

Alexander Wilms <alexanderw>
Tue 09 May 2017 05:22:23 AM UTC, comment #4:

It the same.

Could you execute the attached script file (t_rank.m)
(which is pretty much your test case) and post the output?

Dmitri.
--

(file #40624)

Dmitri A. Sergatskov <dasergatskov>
Tue 09 May 2017 05:03:29 AM UTC, comment #3:

On my machine, eps returns 2.2204e-016, both in Matlab and Octave. Do you get something different?

Alexander Wilms <alexanderw>
Tue 09 May 2017 05:00:40 AM UTC, comment #2:

I cannot reproduce this on linux:

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 09 May 2017 04:51:03 AM UTC, comment #1:

Just found this: http://octave.1599824.n4.nabble.com/tol-in-rank-function-td4680288.html

Alexander Wilms <alexanderw>
Tue 09 May 2017 04:28:29 AM UTC, original submission:

Script:

Matlab output:

Octave output:

Alexander Wilms <alexanderw>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #40625:  lab.m added by alexanderw (2KiB - text/plain)
file #40626:  precise_rank.m added by alexanderw (159B - text/plain)
file #40624:  t_rank.m added by dasergatskov (74B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by dasergatskov (Posted a comment)
  • -unavailable- added by alexanderw (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 09 May 2017 10:13:05 AM UTCpantxoCategoryNone=>Octave Function
      StatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Tue 09 May 2017 05:54:40 AM UTCalexanderwAttached File-=>Added lab.m, #40625
      Attached File-=>Added precise_rank.m, #40626
    Tue 09 May 2017 05:22:23 AM UTCdasergatskovAttached File-=>Added t_rank.m, #40624

    Back to the top


    Powered by Savane 3.1-cleanup1